Yes. In inflation adjusted dollars spending on AI dwarfs previous "megaprojects". But as a fraction of GDP it's fairly modest -- comparable to the Apollo Project.
It's a sign of how much the economy has grown that under "1% of GDP for a few years" now is far bigger than "over 10% of GDP for a few decades" was in the late 1800s.