Virginia: Can I apply my capital loss carryover (which originally occurred in Calif) in Virginia?

I had a capital loss in 2016 while I lived in California and was a Calif resident that will carryover into 2017 (and beyond!).  In mid-2017, I moved to Virginia and became a Virginia resident.  Can I use this carryover loss on Virginia state taxes?  (I know it applies to Fed taxes every year no problem.)  Or can I only use it on Feds and Calif taxes?