Mucus plug?

Hey guys so yesterday around 7:30 ish a big blob of mucus came out of me and as soon as that happened I started feeling really sharp pain in my lower abdomen/back almost like really strong cramps. The mucus still come out in chunks every time I wipe, I’m 31 weeks pregnant, should I be worried?