I would assume that the same
“substantial human authorship” criterion applies. Copyright is about human creativity, it doesn’t otherwise matter if something is art, prose, typesetting, or code.
> The Supreme Court previously rejected Thaler's request to hear his argument in a separate case involving prototypes for a beverage holder and a light beacon concerning whether AI-generated inventions should be eligible for U.S. patent protection. His patent applications were rejected by the U.S. Patent and Trademark Office on similar grounds.