macOS offers numerous ways to secure your data. Used together, these features mean that even if your Mac is stolen, the data on it is safe from prying eyes.
Account Password
The most basic step of protecting your Mac is having a password set up for your user. If you don’t have one, it can be set up in System Preferences > Users and Groups.
While there, make sure the computer isn’t automatically logging in: