Confused

My period will come on time for 3 months but then after the last time it leave I won't see it again for another 2 or 3 months. I want to know whether or not this will affect my ability to get pregnant