Yes, both hypothyroidism and hyperthyroidism can affect fertility. Hypothyroidism can lead to anovulation (lack of ovulation), which prevents pregnancy. Hyperthyroidism can also cause irregular ovulation, thereby affecting the chances of conception. Proper management of thyroid levels is crucial for women trying to conceive.