Personally borrow and invest over shorter periods of time (less than 10 years) has too high of a risk portfolio for me, especially with a depreciating asset.
What if there is a market downturn, and you’re out not only the decrease in value of your assets but also the interest in your loan. I admit this is down to personal preference and risk tolerance.
Well if you can't survive a downturn and the risk then no you shouldn't do it. But if you can then you should and in the long run you will end up ahead.