You’re correct, and you need to charge a battery storage device during the daytime hours, which will charge your vehicle in the evenings.
Prices vary depending on PV system sizing and other usage requirements, other plugin extras etc. Worth getting a quote through to assess your affordability.
The longer-term benefits are becoming more and more evident with each year passing. 😉