Getting my hub today. Setup questions

How does setup for everything work? Do you first add a device to the SmartThings App, and then secondly install different apps within smartthings to do added things?