Joking aside, even with AI generating code, someone has to know how to talk to it, how to understand the output, and know what to do with it.
AI is also not great for novel concepts and may not fully get what's happening when a bug occurs.
Remember, it's just a tool at the end of the day.