Sore after sex when pregnant

Me and my boyfriend had not had sex since I got pregnant. it's been about 5 months and we just did. It hurt really bad! Now I'm super super sore and slightly irritated. Is that normal?? just cause I hadn't had sex in a long time?