Pregnancy!

If you had unprotected sex 4 days before your period was due is there a possibility to get pregnant? I didn't think you could get pregnant unless it was when u ovulate after your period, my period is now late and I'm quite worried at I had a mc in July and think it would be too early to be pregnant again!