Yes
What firmware are you using and do you have eeprom enabled. If eeprom is enabled, the values stored there will be used regardless of what you change the code to. Usually, though, there are commands available to change the steps/millimeter on the fly and then store those new values into eeprom.
See G code commands M92, M500, and M501
here.