That's what the Japanese tried - and failed at spectacularly. Their debt is running 200%+ of GDP as a result and growth is zip.
Very stupid. It also puts you in a place where there's no exits short of bankruptcy. It is deadly.
An "investment" is only an investment when it produces more than you put into it. Replacing functional infrastructure that is already there does not produce significant returns long term.