That is not guaranteed unless stated expressly . The default is the promise of nominal payments i.e. to pay fixed amounts upon retirement based on service length , last pay etc.
So inflation is going to make the pension DB fund happy because they can inflate away their obligations i.e. the discount rate is larger. Today’s typical DB plan in much orse off because inflation is so low.