It would work perfectly well, but to be of any benefit, the lens would have to be much larger than the panel, because you'll only gain if the lens collects light from a larger area than the panel and conentrates it down onto the panel area.
For most roof-type solar panels that would mean a...