Pregnant?

If you have sex on your period but 7 days before ovulation can you get pregnant?