I got off birth control in October how long does it take

So I was on the implant for a year in a half then i got on the pill for 3 months i stopped in october but each month is a failure. I got pregnant with my first in 4 months but this time i dont know if it got something to do with the birth control. I heard people say it takes just a few days for birth control to leave ur system but is there a possibility of my infertility its now june i been trying since october . I also got my periods each month after I got off birth control