You can do it, but it takes a lot of electricity to get the apparatus going
For instance, you could harness the energy from an electrical storm