No, casting does not raise energy. You need to raise energy first in order to cast. It is the energy you raise that powers the spell.
There are a number of ways to raise energy. They are sometimes referred to as the Eight Paths to Power. Perhaps most commonly used are dancing, chanting, incense, drumming, and breath control.