Period and sex?

I have a 4 day cycle for my period. On the third day of my period I had unprotected sex, but I'm on the pill. And didn't let him "bust" possibility of pregnancy?