Sex On Period

Could you get pregnant having sex on your period.. i heard you cant and u can.. which one is true