Can my workplace do this??

Yesterday my store manager came around with a paper for everyone to sign saying corporate won’t allow us to have drinks at our registers. I work in a busy grocery store so stepping away from my register to get a drink isn’t really an option we normally keep a water bottle underneath the register to drink when we get two seconds between people. Can my workplace do this?