Do you have a particular example in mind? It would have to be very large to provide a significant amount of power.It's a great way to use a renewable energy source to power your car and reduce your dependence on fossil fuels.
The $260K Lightyear0 was going to have a "solar skin", that the company claimed would give the EV up to 43 miles of range per day. Unfortunately, the production of that car was halted before producing a single car, so we'll never know how realistic that claim was..