Can you get pregnant while on your period

Had sex while on my period? And wasn't planing on it but we did it vanginally and he.....?