Taking pregnancy test

Hello I had recently had sex with someone I was in a relationship about 2 weeks ago but also had gotten my period two days later should I be worried that might have gotten pregnant and if so when's the soonest you think I should take a pregnancy test ps also on the pill but don't take them around same time n had forgotten to take the pill the day before