Definitely not. Talk to your professor about your issues, and see if he/she can suggest some way to help. Your school may have a counseling center to help. You might try a simple 5 minute mindfulness exercise (breathing) before class to calm you. But don't drink. If you are discovered, you will likely have violated a school policy and might end up in a lot of trouble.

I have anxiety too. I would advise smoking cannabis before resorting to drinking . For one, drinking is inhibiting, keeping you from doing a lot of things you need to do during your day safely, such as driving, doing your work and even talking with others. If your school or officials found out you were under alcoholic influence, it would get you into a lot of trouble. If you use cannabis, not only does it take the edge off, you can also function properly and accomplish things you wouldn’t necessarily be able to accomplish while tipsy or drunk. Also, if you resort to alcohol in hopes of easing your tensions, you’re at higher risks of developing alcoholic tendencies