Wash sale rule

So I sold my Vanguard S&P 500 ETF for a loss a week ago in my taxable (non-retirement) account .  My separate retirement account is set to automatically invest a small amount every paycheck into Vanguards S&P 500 mutual fund.  Even though it is automatic do I have to exclude the amount purchased within 30 days of the sale because of the wash rule?