Yes, your debt does matter.....including buying a new car, think it over if you are trying to qualify for a home loan..
Click this link to access article:
https://www.washingtonpost.com/realestate/saying-yes-to-a-new-car-can-make-a-mortgage-lender-more-likely-to-say-no/2015/08/11/fc35f41e-3f71-11e5-bfe3-ff1d8549bfd2_story.html