No, you should not be feeling pain in your genital area, especially since it is causing you to leave class. Yes, you should see a doctor about this. However, you could talk to one of your parents about this first in case they have any ideas or advice.