They are part of the executive branch and carry out initiatives of the president. So, you are incorrect.
Department of State
The Department of State plays the lead role in developing and implementing the President's foreign policy. Major responsibilities include United States representation abroad, foreign assistance, foreign military training programs, countering international crime, and a wide assortment of services to U.S. citizens and foreign nationals seeking entrance to the U.S.
The U.S. maintains diplomatic relations with approximately 180 countries — each posted by civilian U.S. Foreign Service employees — as well as with international organizations. At home, more than 5,000 civil employees carry out the mission of the Department.
The Secretary of State serves as the President's top foreign policy adviser, and oversees 30,000 employees and a budget of approximately $35 billion.