You can make a retroactive election on Form 8996, as long as the election is effective during the corresponding taxable year. But if you elect to start Qualified Opportunity Fund (QOF) status on a date after the investments come in, the prior investments cannot qualify for Opportunity Zone benefits.