Yes, getting a debt consolidation loan can affect getting a mortgage. This effect can be both negative and positive depending on when you choose to consolidate your debt. If done well in advance of taking out a mortgage, it can benefit you because it shows a better history of credit.