Pension funds and inflation – will commodities help?

For a long time, inflation averaged 1.5% in industrialized countries. Now it has come back, peaking in late 2022 in the US and Germany. This had a negative impact on real returns. Can commodities as an asset category help to protect against inflation?