dull pain on lower right side of back and period cramps

I just had this dull pain in my lower back right side at the same time as period cramping. I'm currently 30+2 weeks. It lasted for like 10 minutes. I'm currently lying down and drinking water but has anyone else experienced this before? I'm not sure if I should be worried..