You can use a 401(k) loan for a down payment, and doing so won’t affect your debt-to-income ratio. Just make sure that you can repay your 401(k) account quickly. The longer you take to repay your loan, the more you’ll miss out on the power of compound interest.