This is not correct. Wash sale rules apply unless you make a mark-to-market election in the prior year.
EDIT: I am wrong: https://www.optionstaxguy.com/mark-to-market
> A trader must keep detailed records to distinguish the securities held for investment from the securities in the trading business. The securities held for investment must be identified as such in the trader's records on the day he or she acquires them (for example, by holding them in a separate brokerage account).