I'm not really sure why this is downvoted. Are kids allowed to just walk out of class now after answering a phone call or text? If there's an emergency, there's literally no actionable information the student can act upon without administration getting involved.
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.