Yes, leaving on Mac plugged in overnight can accelerate your battery degradation process. Always plug out your Mac's charger when it's fully charged.