Yes.
My experience was on the road set up. Damage mech had worked fine for about a year – I assumed it was just cosmetic. A wet week riding and a couple of races in awful conditions and the battery was going down in 24h.
Having previously had a battery issue I swapped that out as a first thought. Same problem. Figured it was the mech by a process of elimination. Unplug one thing and see if it goes flat.
It is worth plugging in to the etube program as it will tell you about firmware and obvious issues. It won’t detect leaking charge in my experience.
Charge it up, unplug the mech and see if it goes down. Then the shifter. Try a different battery. Visually inspect cables, junction boxes and make sure connections are ok and clean.