State tax filing

if I paid tax to Maryland, should I pay tax to the Virginia on same income which I made in Maryland?