chance of pregnancy??

So i had sex with my bf on the last day of my period and was still spotting a little bit. He wore a condom but second time he came inside!!!! Didn’t take plan b and im not on birth control! Is there a chance i could get pregnant??? idk what to do!! and how long after should i take pregnancy test??