Do thyroid problems make a dog lose hair?

My aunts boyfriends dog is losing his hair on his back and legs… Supposedly his x wife took to vet and they said it was his thyroid… Is this possible?