This devalues the money, it's equivalent to a forced transfer.
Technically, thanks to thermodynamics, the pie is constantly shrinking. We haven’t dug up or exploited all the useful stuff yet, so from our limited perspective there is still room to grow the pie. But we’re probably getting close to the limit, as the rate of consuming useful stuff is beginning to exceed the rate of digging it up or otherwise capturing it.