Yup...that would work. But they are not nearly as heavy as a car. The weight of the car is the issue.
Consider the panels that power the space station—and they get pure sunshine most of the day. Some day when we can build stronger batteries, more efficient panels, and lighter materials we will have solar cars. But functional systems for the average person are probably decades away..
Sorry, there is not enough energy in sunlight to even power just a commuter car, even with lossless storage and 100% efficiency. (both of which are a violation of the laws of thermodynamics) Also, what happens if you have to park in a garage? As mention earlier, you might be able to generate enough power to run a fan to help keep the car cooler, but beyond that? Not so much.
Even at 100% efficiency, 50 SF of panels would only give you 7 miles of range with 10 hours of charging. Solar cars will never be a thing. For light commuting, topping off would be fine, but plug in is always going to be necessary.