What’s going on?!

I’ve been on the pill for nearly a year now and recently my mood swings have been very bad, I’ll be happy in a good mood and suddenly don’t talk to me don’t touch me I am irritated by every little thing and I can’t get out of the mood no matter how much I try should I go to my doctor about this ?