Pain during sex??

So i was having sex with my boyfriend and everything was going well intilll after i orgasmed i went on top and thing a shot filled with pain i felt on the deep top on my vagina. It happen again later on during the session too if it went deep enough it hurt like hell! Is that normal maybe it was a cramp??