It is perfectly legal. If cleared for an instrument approach simply switch to green needles (localizer) when within the localizer service limits. You could even back FMS data up with the localizer in blue needles too. Much more on this, but what you did is appropriate. If not on the visual, definitely go "green" before the FAF.