If one can write a program that can generate any program, the world as we know it would be such a different place protecting my job will be least of my worries. This is basically the equivalent of a run away program what can create better versions of itself automatically.
Nearly every human's job is at stake here.