There are clearly uses where it can be very useful, if you just want to prototype some solutions having AI-throwaway code that you don't understand is entirely fine
But if you commit that and turn it into production project... that's basically starting with massive tech debt from the get go, and you can't do "just let AI write it from scratch again" trick too many times while growing features