pain during sex?

For a while now when I have been having sex I have felt some discomfort around my cervix. Last night after having sex I ended up getting sick because of how bad it hurt and I had to lay on my side because by abdomin hurt so bad !!!
Any ideas ? Or has this happened to you ? Should I go to the doctor?