I do this more often than not (trying to optimize promotions, higher minimum miles, upgrade possibilities, status miles needed, etc) between my two StarAlliance-frequent-flier-programs UA Mileage Plus and LH miles&more.
Often I will only do it after check-in (at a Lounge or even later at the gate) to not loose upgrade (waitlist) chances.