Yes, everything works. My YJ was all OEM electrical, just the crappy looking ones in a plastic strip. I swapped over to electrical Autometers (except for the OBA PSI gauge, which Autometer does not make in electrical), so all I had to do was figure which wire is which and I think I swapped out one sender with the Autometer one. Going from an OEM mechanical CJ to electrical gauges just means you have to swap in Autometer sending units for all mechanical fittings on the motor, then run wire for each through the firewall. All the electrical gauges need is +12/Ground/Signal/dashlights.
Five years ago I integrated all the wiring of an OBDII '02 GM motor, it's under hood harness, and it's fuse block (I completely eliminated the Jeep fuse block) into my old YJ. After that, swapping the gauges was easy.