Can apple transfer my photos&apps if I get a new iphone?

My iphone 4 is really messed up, I got the power button fixed and now its just all screwed up and won't stay on unless its plugged up and yet keeps shutting off. If i was to go to the apple store and buy a new iphone 4s would they be able to transfer all my photos and apps to my new one? I'm more concerned about saving the photos than the apps.

Yes i think so. Just sync your whole iPhone onto your iTunes library and then you should in turn be able to sync it from there onto your new phone.