Some endocrine problems can be diagnosed and managed by primary healthcare professionals (General Practitioners).
Your GP could refer you to an Endocrinologist for a proper diagnosis and treatment plan if they have reason to believe that your body may be experiencing hormone-related problems.
A visit to an endocrinologist might be advantageous for you, as they are better familiar with your disease condition and up to speed on the many drugs, medical advancements, and clinical studies in this specialty.
If your primary healthcare physician has identified an endocrine disorder in you, they could suggest that you visit an endocrinologist to help manage the disorder, particularly because these conditions are chronic (lifelong), complex, and can affect multiple organ systems.