True, plugging in the car to charge it does take electricity (which may come from a coal-fired power plant). But the gasoline that you put in your car comes from a gas station that uses electricity, and that gasoline is refined using copious amounts of electricity from the same power plant.