So I guess it is possible.
Makes it easier to keep her stall clean.
Used to be standard in stanchion/tie barn stalls to have an electrified metal piece over cows’ shoulders. When they humped their back for a 1 or 2 they quickly learned to back up a step to avoid a shock—and deliver their load into the gutter behind them.