Inside any vehicle you are relatively well-protected from a lightning strike.
It's always possible that a lightning strike will disable a car's electrical system, and likewise, that can happen to any car, electric or gasoline. However, most of the electronics that involve engine or motor control would be shielded and unlikely to be affected by the strike. I say "unlikely" because lightning is unpredictable, and there's always a chance it will choose an ionization path that takes it, or part of its current close to, or even into a critical component. Lightning behaves in an almost random manner.