Yes, but it isn’t common. Make keeping your headlights in good working condition part of your regular maintenance routine, and you should have to worry about failing an inspection.