Nerves give me diarrhea?

So I have anxiety and am currently starting medication for it. I’m in college and sitting in class gives me so much anxiety I have to leave class to go to the bathroom and I always have diarrhea from anxiety. It’s really embarrassing and annoying. Does this happen to anyone else?