Make a new open source license to restrict cods not to become machine learning data

I just want to know, can I write my own new open source license and limit my code within that license to protect it from becoming machine learning data?
I got this idea just because of GitHub Copilot. Even though AI is only an aid at the moment, I still worry that in the future, more intelligent neural networks will learn from humans without constraint.