Oh, AI-generated code may not be, but like you said we don't have a court ruling yet.
I don't think it can't be, but we'd first have to have models trained without violating the rights of all the authors of the works in the training data. Like if you trained a model only on GPL software, then the model and its output should also be GPL.