People who think that "software engineering" and "writing code" are the same thing will indeed be out of a job. People who understand the difference will continue to thrive.
Thinking that software engineers can be replaced by AI is like thinking that mathematicians can be replaced by calculators.
Thinking that software engineers can be replaced by AI is like thinking that mathematicians can be replaced by calculators.