Do airplanes have headlights?
In essence. Yes they do. Aircraft landing lights are equipped on any aircraft intended to fly at night.
There the similarities end. Landing lights are high discharge and very bright to penetrate the darkness to a required distance, to make seeing the runway at several hundred metres possible.