I wish that were true but unfortunately the situation is far more dire than that...
The AI Code belongs to the AI Company more than the public, meaning they can enforce license and usage rights on the entire codebase. If only because of the contract users sign when they agree to ToS.
The opposite is also true, though, that if the AI Company generates licensed works of others due to their training data that they should be held responsible in a court of law.