What happens at a public accounting firm if you just refuse to work overtime

Specifically big 4? What if I just say no I don't want to work over time and leave at 5 every day? Will they fire you on the spot? Is it even legal that they force you to work hours you aren't paid?