First of all, you need to check your pregnancy status through home pregnancy test or blood test for beta-hCG.
Pain following sexual intercourse may be due to local blunt trauma
around cervix, vaginal/ pelvic infection
, vaginal dryness
or other uterine cause etc.
You need to get examined once by your gynecologist. Take suggestive measures accordingly. Hope it helps for you.