Yes - you can rely on Smart Charging functionality to automatically adjust charging patterns. As per https://support.microsoft.com/en-us/surface/caring-for-your-surface-battery-9ccdfa7b-d074-f629-425c-1c090ac66bed ,
Battery Smart Charging – Battery Smart Charging is a feature that helps protect your battery from the effects of charging patterns and high temperatures that may accelerate battery aging or lead to expansion. Battery Smart Charging is always active and turns on automatically to limit battery charging to 80% when it detects your device is plugged in for prolonged periods and/or used at elevated temperatures. The 80% charging limit automatically turns off when the battery has been discharged below 20%.
Smart charging is always active and turns on automatically when it detects your device is plugged in for prolonged periods or used at elevated temperatures.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin