Yes, you just need to find what the base cause is so it can be addressed. There are many causes of hypothyroidism and taking Iodine will not address all causes.
And there can be several reasons for hyperthyroidism, so again the reason needs to be found and addressed.