Yes, external factors such as stress, environmental toxins, medications, and certain diseases can impact the function of endocrine glands and disrupt hormone production and regulation.