In some cases, gynecomastia can be the result of either hypothyroidism or hyperthyroidism.