Yes. Doesnt even say it must be entered in. The entry is a CYA to prove they checked and to theoretically force the check vs the cashier telling the manager "yes, I check everyone" even when they dont.
Saying "its the law" seems to be the thing the cool kids do to shut up the ignorant masses that dare to push back. "Oh, he said its the law, so I need to stop pushing him because he didnt make the decision and it is not his decision. They have no choice, its not their fault. Its THE MAN causing the problems."
Whenever someone tells me, "it's the law" I always ask them to tell me which law they are talking about. To date, I've only had one person who was able to answer with an actual law, and she was from OSHA. Everyone else stutters and tries to bluff their way through.
For clarity, I don't challenge police officers. With them, my goal is to make the encounter as brief as possible.