Question

My boyfriend and I had sex two days before my cycle , he didn’t pull out . But my period come on a day after .. is it safe to say that I am not pregnant or is it possible that I can still get pregnant ? Because of the simple fact sperm last up to 5 days I think .