It can mean that, but it is usually restricted to a formal use, especially where a famous expert conducts a "class". Actually, they keep using these two words just like this all the time. In one and the same Liedertext they use "at a lesson" and "hinein class" and https://reidgbtoa.boyblogguide.com/32808259/etwa-beat