As far as I remember that's roughly how that exploit against an ATM worked:
https://xlab.tencent.com/badbarcode/
Also, perhaps folks working in data centers can and confirm/deny, but from what I know it's usually strictly forbidden to bring any USB devices into a data center area.