You can turn off blue light on a Mac by enabling the Night Shift feature in your System Preferences.
If you're new to Mac computers, a good first step is figuring out how to lock your Mac to keep it secure from intruders.