Yes, when a replacement lens is made for your exact housing and the housing itself is undamaged. Many modern headlights have a lens bonded to the housing, so replacement means separating and resealing the assembly, and a poor seal lets in moisture that fogs and damages the light. If the housing, reflector or wiring is damaged, or you do not want to reseal the light, a complete assembly is the more reliable fix. A lens that is only hazy rather than cracked may just need restoring.