Well yes. A teacher can have a box for phones, but kids need to put the phone there themselves. Of course, depends on the relation teacher has with their kids, but that's how you should do it by law.
And even then, if the teacher trips the box, it is on them to reimburse owners for broken phones.