Upon the end of your menstrual cycle, you will be walking towards your fertile window or ovulation period. In addition, sperm can survive in a female body for about 3-5 days. Based on these facts, you can become pregnant if you have sex 24 hours after your period.