This is true for political appointees - ambassadors, Cabinet secretaries, etc. - but much less so for the civil service, where folks like State Department diplomatic staff or FBI agents tend to serve multi-decade careers under many different administrations.