Yes. You need to back up your phone to either iCloud or your computer. Then restore your new phone from that backup.
What tintbob is referring to with deleting content is if you are getting rid of your 4. Make sure "find my iphone" is off before you delete all content.