Indeed, the risk would be you try to sue another company for copyright infringement, and in discovery it comes out you generated that code.