Crying after sex

So yesterday me and my boyfriend were having sex and just the start I had awful pain. We stopped and I just started bawling my eyes out. I didn’t really know why at first but the more I thought about it it was bc I felt so pathetic about it. Has this ever happened to anyone else?