Hello
Generally speaking it's not advised to change Vendor codes or G/L codes in a live system. Although, as you point out it can be done. The main concerns around changing these codes is that it can lock the system for quite some time as it will update all related records where the code was used. Another issue you face is an past reports or data exporting from the system naturally may no longer reconcile with the updated system.
The simplest way to prevent accidental updating of codes is to manage at the No. Series level - if you set the No. Series for Vendors to Not allow manual numbers, then the Vendor Code box is not shown on the page a no users can update them.
If for some reason, from time to time you do need to change some codes, toggle the switch, make the changes then toggle back. Use in combination with a environment level security group if you want to ensure only you have access to the system while doing this maintenance.
Ensure you are a member (not just owner) of the security group..
Cheers
Andy