Will I be okay?

My period is in 10 days if I have sex tonight with a condom the whole time and he pulls out before being close to finishing will I be safe from pregnancy?