Username/Password to access the CLI

Upon boot, one can access the CLI if they have physical access to the device. Is there a way to require a username/password before exposing the CLI on startup?