I believe that the compass is calabrated with all electrical instruments switched on. So if the transponder is off, the compass may not read true.
Given the importance of the compass & that this is when you initially tune the DI, it would be important for the transponder to be on.
I was always told to turn the transponder from standby to alt when leaving the airfield / circuit