Thyroid

I just had a blood test done the other day I'm still waiting on the results but I do know that hypothyroidism runs on my family, for the past seven months or so I have had a period that won't really go away and I have never been able to get pregnant as I had been trying for about five years, has anyone ever had any problems with there thyroid and infertility then be able to get pregnant after getting the correct treatment?