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://stearnsi061bay4.blogozz.com/32898418/die-beat-tagebücher