Is it possible to find out if a Mac was simply powered on (power button) but not logged into any account yet? Sorry if this is a basic question:

Is it possible to find out when a Mac was simply “powered on” (like just pressing the power button) and brought up to the login screen that shows the User Accounts, but NOT logging into any accounts ?  So basically just starting up and then shutting down again without actually going further. Or would that mean that it’s too early so no logs/records/timestamps are created yet at that point ?

(I found some discussion here about logs but it doesn’t talk about just powering on: https://unix.stackexchange.com/questions/14127/how-to-know-when-and-which-user-logged-into-the-system-under-mac-os-x-last-is-n) 

Thanks !
You can view this information using the last command in Terminal.app.

The last command brings up the login history in LIFO order. Each entry contains the name of the user who logged in, the local time the login occurred, and the duration of the login session.

Shutdowns and restarts are logged as pseudo-users named 'shutdown' and 'reboot,' making it a simple matter to see who (if anyone) has logged in since the last startup, or if multiple shutdowns/restarts occurred without anyone logging in between them.