Pain after sex

My boyfriend and I were having sex and for some reason I was in a lot of pain afterwards in my lower stomach. Is that normal? I had my legs straight up and it was just very painful.