Changes to the code need to be proposed via a Bitcoin Improvement Proposal (BIP).
But even then the change needs to be agreed by all devs before committing the code to Bitcoin Core itself.
And even then, the new Bitcoin Core software needs to be adopted by the majority of the miners worldwide before it is live.