It isn't much more complicated than that.
See the Startup Folders FAQ.
(Alternatively, you might want to turn on the option to not automatically load certain types of drives when restarting, which you can find under Preferences / Folders / Folder Behaviour.)