If the device you use in the classroom is yours, for example your laptop that you bring to class every day, you can definitely do that.
Also on a school computer that is only used by one person, the same license may be used.
However, if several people share the same computer, the school should purchase a corresponding number of individual licenses.