yeah, if you really want to max your battery life you can even limit it to 50% or something: https://apphousekitchen.com/
Macs do this automatically but it doesn't seem to happen to me that often. Usually if I leave it plugged in for an entire weekend I think.