It's never absolutely guaranteed, but it's not like it's some phantom principle. With a bit of awareness, in most cases, you should be able to predict the likelihood that your position at your present employer will continue to exist (and the likelihood that your employer will continue to allow you to fill it).