Can you get pregnant on 5th day of period?

Hi. I had sex with my boyfriend about two weeks ago. I was on my 5th day of my period. That period was 3 days early. My cycle is usually 29 days but once this year is was 32 days and another was 27 days, so it ranges. This is the first time was 26 days till I got my period a few weeks ago. I should get my period in 4 days. Can I get pregnant when I had period sex?