That is correct.
The energy of the electric current, which comes from the battery, is transformed into light and heating energy. Thereby, the energy of the battery decreases progressively.