Software engineering as a profession isn’t going anywhere, but what makes AI different from previous fads is that engineers who fail to adapt and update their skills will definitely be replaced.
That's no different from previous developments. If you refuse to work with modern programming languages, or with the web, or with a task-tracker, you're narrowing your opportunities for employment considerably.