Can I put money into a cash register if it s short a few dollars?

So at work today I was like 4 dollars short from what I was supposed to have in the register, so I took 3 dollars out of my wallet to balance it out. (If the amount in the register is off of what it should be more than 3 dollars I can get penalized) So is that okay that I did that?
10 answers 10