Either you don't know what net worth means, or your numbers are off. But yes, you are correct, if you are not paying for the vehicle in cash then you cannot afford it. If you're making a truthful statement about networth, and you've only been maxing out your 401k for the past 3 years something doesn't add up if you're taking out a loan for $40k+. I'd encourage you not to do so as you're obviously on the right path.
And it's not bragging, you've just made wise decisions to date. I'm a year younger than you though and my networth is 4x yours, but it doesn't mean that what you've done isn't impressive. Much props to you, but you should keep on the right trajectory and pay cash and put that monthly payment you would have been making into mutual funds.