I'm eligible for a phone upgrade. I'm autistic and I'm scared I'll lose all my stuff. How does it work?

So, I don't know how exactly this works, but what exactly is a phone upgrade? I've forgotten passwords for all the apps I used and I'm scared i won't be able to remember any of them.

Can they like, just transfer all the data to a new one?