TTC stomach hurting

So since the end of AF I have been having intercourse with my SO and yesterday and this morning only in the mornings my stomach has been hurting and I’m back and fourth to restroom what’s going on.?