This is a great question, but I feel that the better question is: If a model was trained on open source code, should all code created by that model then be subject to the licensing from the code it was trained on?
I'm really hoping we can fix the current issues with the Supreme Court before this question comes before it because it's going to be hilarious when every company that has used AI assisted coding is forced to publish their source code.