Doubt regarding pin selection

I was performing the LED assignment connecting the resistor leg to pin 0 and it was successful to go further and experiment I connected the resistor to another pins and made the necessary changes in the code but to do so i had to delete the previous data collected of pin 0. Is there a way to add the data of other modifications to the original connection?
Thanks and Regards.

What was the data you collected when the digital pin you connected to led was 0

By data collection I meant that the code was successful.