That is a factor, but I suspect it's fairly minor in the population as a whole. A LOT of conservatives live in California, where gas prices are quite high, much more than some Democrats living in Wyoming. Democrats do often live in states with high gasoline prices, so that is also a related factor.
But I do think Republicans often view EVs as silly even if they would need their needs reasonably well. And Democrats may buy them even if they don't.