Pain during intercourse

So my BF and I were doing the dirty doggy style when I suddenly had this pain in both left and right abdomen near my pelvis. I’ve never had that before. Is it something I should be concerned with or just a fluke? After he pulled out it was significantly better.