How many days after sex can I take a pregnancy test

curious... I had sex on the fourth and I have an iud and he plugged out but I have bad anxiety and want to make sure I’m not pregnant. My friend recently got pregnant and now I can’t stop thinking about her situation and it’s messing w my head