Some people would argue that this is the best way to use AI as it exists today. Generate a POC and then if that POC makes sense, then rebuild it from scratch by hand. Maybe you can still use AI for a bit of boilerplate generation, but you should write all of the business logic and verify it by hand.
Personally, I'm starting to lean more and more towards this approach.
Though, I have to admit, for a well defined bug ticket, AI can be super useful to knock those out.