If you think an engineer's job is simply to write code, I think you've misunderstood what engineering is.
Think about an artist moving from traditional painting to Photoshop. Digital tools make parts of the process easier, faster and more accessible. But knowing how to use Photoshop doesn't make you a good artist. You still need to understand composition, colour and what you're trying to create.
I see AI-assisted development in much the same way.

Engineers are here to solve problems and build things. Writing code was how we achieved that, but it was never the skill that defined us.
AI gives us better tools to reach our goals. We can build things faster, but that doesn't automatically make what we build good. You still need to understand the problem, make sound decisions and recognise when something isn't right.
And just like digital art, these new tools come with their own skills to learn.
We can still write code. We can still read code. We still need to understand the systems we're building.
The tools are changing. The engineering mindset isn't.