If I got a new iPhone and I typed my Apple ID in the new iPhone will I get all my thing on it?

I already have an iPhone but I'm getting a new one soon. To be honest I don't really know what an Apple ID is so I was thinking that once I got my new iPhone and I typed in my previous ID would I get all my apps and photos and stuff like that?

Good

Yes you would as long as you have all your previous settings and apps and all saved to your iCloud (Apple ID) account.