Yes, although it may take longer, since both affect the menstrual cycle. To achieve pregnancy with this diagnosis, the first thing to do is to treat hypothyroidism, which involves the administration of the hormone thyroxine.
In this case, the most important is to change lifestyle habits, follow a balanced diet to reduce the inflammation and levels off insulin levels.