You can probably elect to invest your 401k into stable funds.Of course that doesn't protect you from inflation.You still might be able to choose a precious metals fund or something that might outperform inflation.
Counterpoint: BTFD