Deductions & credits

We have very little to claim, only property tax, so no big difference, but wife will get over $1000 refund for stimulus if we both file itemized with that property tax or even take the standard deduction (both will be same).  I just wanted make sure this was legal to change back and forth between single and jointly.