Has this happened to anyone else ?

I just had sex with my boyfriend and I'm on day 3 of my period. It was around 9:30-10 when we had Sex and the last time I ate was around 2-3. Idk if it was because I haven't had dinner and was hungry or if my period had anything to do with it but immediately after we finished my stomach has been hurting so bad and it's aching! I don't know if I should eat or what to make it go away !! My stomach is aching so bad and it really hurts! Idk why