I live in South Carolina and work in Virginia, can Virginia tax my income? When I filed in 2017 they returned all of the taxed income throughout the year

I live in South Carolina but work in Virginia, my income was taxed in Virginia throughout the year.  Last year, in 2017, when I filed my taxes all of the tax Virginia took out of my paycheck was returned to me so I could apply it to my South Carolina taxes.  Should this be the same for my 2018 taxes?