Cervix Closed???

Help so my fiancé and I had sex and we were doing it doggy style it hurt it felt like he as pressing up against something ?! Would it be my cervix being closed because I could be prego?!