yes the usted form is the formal way to speak to someone who is older than you. someone younger or just a friend you use tu. If you don't know the person and just meeting them or somewhat you still use the usted form.

That's good you are trying spanish fun to learn. I'm a fluent speaker and i'm in spanish 2 just to get some credits for high school to apply for a scholar.