Yes a car can get struck by lightning. If you're in your car and it's lightning it's best to stay inside the car until you can get into some other shelter.
When in your car during a lightning storm keep any part of your body as far away from the metal of the car as possible.