QUESTIONNN!!

If I had sex on the very last day of my period but we used a condom the whole time and it didn’t break and he pulled out before being anywhere near finishing...am I safe from pregnancy?