State tax filing

In Virginia, I set up a 529 plan four years ago but I have never entered the amount as a deduction on my VA state taxes. Can I enter the whole amount now for the 2022 tax return for Virginia?