You can use a turbine to generate electricity, so yes, you are converting potential energy into electrical potential. However, no real mass produced passenger plane today can use that electricity for flight (thrust).
RAT is only used when sh*t hits the fan. Even then, it can help you power some hydraulics / electrical, not “store” energy for further flight.
The OP asked - in a low fuel situation, can the energy spent on a climb get effectively recovered - and the answer is not really. We convert as much as we can into unpowered (low-powered) descent. But once you are at a spot where you make a final decision to land or not, you are by design low and slow - and all that energy you had 15m ago is gone.
If you need to keep flying, those engines need to spool back up. And that takes fuel.