wondering if im safe or not

so i had sex with my bf , my period supposed to come on in two days , i had unprotective sex because were very close and i trust him and i noticed it was a pot of pre cum. i was curious if pre cum can get you pregnant ?