Yes. Even babies can be born with a thyroid problem. When it occurs as a child, it is usually due to an "autoimmune" disorder. There are antibodies which attack the gland a cause it to malfunction.
This can lead to either hypo or hyper thyroidism.