Yes, Social Security is indexed to inflation. You can also buy a certain amount of I-Bonds that are tied to inflation and are paying very nicely nowadays. Tax free too.
Up to $10k/year, and they're currently paying 9.62%. There's no other way to get a guaranteed return anywhere near that, and everyone should buy as much as they can afford to. You're basically saying no to free money if you don't.