If yes, then you just have to make your own long lasting battery or magnetic generator, and don't forget, the electricity produces magnetic's fields, and the magnetic's fields produces electricity, I mean, it is cycle, if this is so, then when you close the cycle, you'll get free energy forever,
Do you feel the wire heat up when the current passes through it? That resistance drains the energy, so the cycle cannot continue forever.