Taking meds from the Omnicell

I see nurses take zofran or Tylenol for themselves all the time from the omnicell. I’m just wondering what the consequences of doing this would be? I mean it’s obviously not the same as taking narcotics but like is this allowed lol