This is absolutely true. I know people who have worked for the government for 10+ years, and they specifically highlight the stability as the one reason they haven't moved to the private sector where you may need to be looking for a new job every few years. Of course Musk etc. see this as a bug, not a feature, and think that every worker needs to constantly justify their employment.