In short yes you can, but there are only certain makes of EV charger that will integrate with solar panels.
We work with the Zappi EV charger that integrates with solar energy. The Zappi can both operate as a standard home car charger, using power from the grid, or it has optional charging modes which use 100% green energy generated from your own home Solar PV system.