Not really. Nowadays, Vegas hotel minibars frequently have sensors.[0]
Before sensors, people would grab a $5 can of soda at 2am, drink it, swing by the convenience store in the morning and get a 12-pack for $6, and put a single can back in the minibar. On paper it's a 1:1 swap, so it's not really stealing, but hotels wanted their profits, so they invested in the sensors.
I'm sure other hotels just check what gets restocked and charge you accordingly, but hotels that really want to juice you will get every dollar they can.
[0] https://www.reviewjournal.com/local/local-las-vegas/minibars...