In my opinion, code that was generated with the help of AI isn't inherently bad if it was used to fix bugs and design issues.
What should be forbidden is code that was obviously AI-generated 100% from a prompt.