Assuming you can catch every new bug it introduces.
Both assumptions being unlikely.
You also end up with a code base you let an AI agent trample until it is satisfied; ballooned in complexity and redudant brittle code.
You can have an AI agent refactor and improve code quality.
You can have an AI agent refactor and improve code quality.