It feels kind of dumb.
Even if you're borrowing money from "yourself" at say 5% and paying that interest to yourself ("free loan"), it's like a 401k loan. The real cost is the opportunity cost of your money being out of the market. Most reasonable loans (while keeping your money invested) would be a better option than not investing.