Phiggs,
The technique assumes the DI is synchronised with the mag compass (common sense says it should always be so)! If the DI wasn't synchronised at the time of discovering the track error, it must be corrected before trying to fly on it any further.
It matters not how you got the track error in the first place, it's merely a rule of thumb to regain track.