Ease my mind

I did anal yesterday with my boyfriend and we used a condom but during it the condom broke but as soon as we heard it he pulled out. There was some precum but he never went inside my vagina. Do I have a risk of pregnancy? Btw it’s been 4 days since my period ended (if that changes anything).