Nope. They flip them on whenever they get some indication of a target in proximity.
One neat thing is that if a ship in a convoy gets hit by a torpedo, ships on the side of the convoy where they
think the torpedo came from put the lights on and search that side - even if you're somewhere in the middle of the convoy by that point