Yes, there is no exception for electric vehicles (EVs), they are subject to the same rules as petrol cars.
You can order your Slovak e-vignette comfortably here.
Related articles:
What vehicles need a Slovak e-vignette?
What happens if I drive without a Slovak e-vignette?
Which roads require a Slovak e-vignette?
How is the Slovak e-vignette checked?
Can I drive into Slovakia without a valid e-vignette if I avoid motorways?