I think you always retain the right to change the license of your own code. If something is 100% your own code, you can choose whatever license you like.
But anyway, I think this is about code that's a derivative of someone else's and so not entirely your own.