Yes, the position lights need to remain switched on during all operations. Removing power from the position lights also removes power from skyBeacon and/or tailBeacon. According to 91.225(f) “Each person operating an aircraft equipped with ADS-B Out must operate this equipment in the transmit mode at all times.”