It depends on your definition of modding the car's coding. If the codes are just altered to a different permissible value (e.g. a different setting), then it shouldn't void your warranty.
If you are overwriting the main source code and using unallowed values, then yes, technically they can void your warranty.