If you want to walk away, nobody can stop you -- only police can stop you, but they have to give a reason, and you can ask "Am I under arrest?". Otherwise nobody can stop you.
It's also free to go to work -- if you want to go, of course if the company wants you go there.