Before And After Period Questions!

Can you get pg a couple days before your period? And how long after your period can you get pregnant? I had sex with my husband 3 days before my period and the same day my period went off and the day after that! Just curious as Me And My Husband Are TTC! Our Last Pregnancy It Took 2 Months To Get A Positive With Our Soon To Be 4 Year Old!