Is thyroid problems associated with having diabetes?

I’ve heard of it affecting the heart, kidneys, eyes, etc. but never thought about this question until I started seeing people on here being diabetic and having some kind of thyroid problem. I have an under active thyroid and have to take Levothyroxine every day for it. AND am diabetic also.