Yep, you're free to wash gains all you want. The IRS loves you to pay taxes early and often
Their a little more reticent to let you take deductions when you really haven't disposed of the asset. I pretty much washed my entire portfolio a few years back when they were talking about raising the LT capital gains tax. It came down to the last day of the year before they made the decision.