after sex pains

I'm kind of new to sex. And Well I'm conceded.  I've been with the same partner for a year, he was my first, but I've noticed that after sex I have a lot of pain like back muscle pain, similar to cramping but not so sever. Is this just due to soreness or should I talk to my doctor because of the reoccurring cramps?