I have 2 thoughts on this:
1. Codes by AI could be stable or unstable. Sure, it might work the way you wanted it to be but it might be unstable in certain conditions. It gets worse if you don't know how they work or how they were coded.
2. Do we know where AI learned coding? if it's from shared codes, it might be okay. But if it's from codes in which the coders don't want others to copy from, that's not okay.