No, it’s not a reasonable approach. Make people be _the authors_ of the code they submit is reasonable, because then it can be released under the GPL. AI generated code is public domain.