HSG pain

Regi
So I got an HSG two days ago and I have been cramping just a little but the Drs told me I have to have sex the day after meaning last night so I did and it hurt a little but for some reason I'm not feeling all that good can it have something to do with it ?