No, this is strictly forbidden during class but before or after any class this is no problem. If there is any emergency at any stage, the school phones can be used.