Yes, both hypothyroidism and hyperthyroidism can affect fertility. Hypothyroidism may disrupt ovulation, leading to irregular cycles or anovulation. Hyperthyroidism can also interfere with ovulation and increase the risk of miscarriage. Proper management of thyroid function is crucial for women trying to conceive.