I'm sure it was a factor insofar that (at least has been reported, I don't live in VA) they seemed overly focused on the culture war stuff too.
Feel like we spent a lot of time making this point to a couple of folks after the election (ie. Holic, 1776), but largely 2024 wasn't about trans or woke or whatever... or even immigration to an extent.... it was about the economy. And Americans see what is going on (all the culture war, all the lawbreaking, all the state violence, all the dysfunction) and see that the administration is not only doing ****-all to deal with voters' concerns about the economy, they are even pursuing policies that are causing harm to the economy (ie. tariffs).
You see it beyond Virginia tonight, in New Jersey and other states.... people don't feel like their concerns are being addressed and they are taking it out on GOP candidates.