IM NERVOUS

Hey guys! So I just had a pregnancy scare a week ago, my boyfriend and I had sex and he didnt use a condom but he didnt cum. I still took the post-day pill because of how scared we were. Thankfully I got my period on thursday the 8th. One thing i did notice was the fact that the day after we had sex i got constipated and i remained constipated until 4 days after. On monday the 12th (3 days ago) we had sex again on my last period day (which means it was a non-fertile day, right?) and he did use a condom this time from beginning to end, we checked if the condom had moved or if it had any holes and it was perfect, which supposedly means nothing happened. However, just like the first time, i was constipated the day after and until today (3 days after) i feel bloated and full of gas. What do you think its causing it?