if you upgrade, you will have a new firmware installed and the iPhone will be as if you just got it from the store. However, if you make a good backup just before you upgrade, all your apps and data can be put back on the phone if you choose "restore from backup."
Hope that clarifies.
Marilyn