I was never "allowed," but I wouldn't have hesitated, and I wouldn't have been physically restrained.
Mind you, I'm not sure what kind of emergency that would be, but hypothetically if one existed then I wouldn't let ordinary rules or decorum take precedence over addressing it.