Yes. There will always be an opportunity cost. It will be more than using polluting petrol and diesel for cars.
But this is mainly due to that scientists are not yet able to develop a model of electric car, which can be produced with substantial economies of manufacture to lower their price. And if this is the case, imagine a case where governments force the citizens to use expensive electric cars by regulation. This is the case where it causes chaos and unemployment...
The market approach does not tell that you are forced to buy an electric car or petrol car or diesel car or whatever. It just says that, there is a price which you must pay for the amount of emission your fuel causes. For example, diesel cars are most polluting. They receive the highest taxes so that people are discouraged to buy diesel cars most. Whereas, hybrid cars and electric cars will receive no or little taxes so that people are encouraged to buy them more than the polluting ones. The margin cannot be accurate, but still, those citizens who are concerned for the environment will be able to pay a higher price for their hybrid or electric cars.
An additional benefit is that the money raised by the government from taxes on polluting cars can be used to plant trees, which reduce CO2 in the atmosphere (to recompense the CO2 released by the most polluting cars). Eventually, if the government is keen, the level of CO2 will reach an equilibrium. This is a very crucial benefit of the market approach, which is unthinkable in the regulative approach, where the government receives no revenue, causes substantial economic downturn and discourages R&D.