Yes, a generator is like a reversed motor. A generator outputs energy, and a motor consumes it. A motor consists of copper wiring inside powerful magnets. This wiring winds around an iron center. When you run electricity to a motor, it triggers the magnetic field and compels the coil to rotate. A generator is creating an opposite motion. It starts by rotating the center, and that creates electricity.