I've been baked at school a couple times, as long as you don't have a boring class or have to spend a lot of time talking to the teacher it should be a good time.
Protip: If you think your teacher knows, they probably do. Usually they don't give a fuck, some teachers at my school will just fuck...