Yeah the transponder sends altitude reference to 1013.2 hpa and then the software at the ATC end adjusts for QNH. Still, if you have the wrong QNH set then it will display as an incorrect altitude to ATC because their QNH correction is not the same as what you are using.