Yes. Public pension plans typically provide pensions based on members' years of service and average salary over a specified number of years of employment.
Many members also receive cost-of-living adjustments that help maintain the purchasing power of their benefits in retirement.