Do pilots turn off the navigation and beacon lights of a jet to prevent a missile from homing in on them?

Missiles do not home on lights; they generally target the hot exhaust from the engine. The navigation and beacon lights on a jet are turned off to prevent them being seen by the enemy; they are never turned off on a commercial aircraft (except obviously when the aircraft is not in use).