Can I pass data from ios 6 to ios 7?

So I have this iphone 3gs, which is running ios 6, and I think that pretty soon I will make the change to an iphone 5 or 5s. My question is that, can I pass my data from my old iphone to the new one even if there running different operating systems? Could really use some help please

Yes using iTunes you can back everything up onto a computer then do a restore onto your new phone. Or you can backup into the cloud.

Music that you didn't buy though will not be restored you will have to load that manually again using iTunes.

Back up everything to your cloud. Almost everyone used to have 6 and went to 7 without issues so yes