It does, but in a weird way. You can turn on "adaptive charging" and it will randomly decide to charge to 80%.
If you want to properly control it, just install the wonderful AlDente utility ( https://apphousekitchen.com/ ). Then you can manually control the max charge percentage. Mine is permanently set to 80% because I never really use even 40% of the battery on my M2-based laptop.