In most circumstances, a 401(k) loan will not affect your tax return. If you lose your job and can’t repay the loan, the IRS may reclassify it as an early withdrawal and tax you on it.