No, from your frame of reference, the light does not lose energy as it travels through the vacuum away from its source. The frequency of light is related to its energy, but as long as there is no interaction with matter or other forces, the energy of a photon remains constant.
The phenomenon you are referring to is known as cosmological redshift. When light travels through expanding space, such as the vast distances between galaxies, the wavelength of the light gets stretched, causing a shift towards longer wavelengths, which corresponds to a decrease in frequency. This shift is a consequence of the expansion of the universe.
While the frequency decreases, the energy of individual photons remains the same. The energy of a photon is determined by Planck's equation, E = hf, where E is the energy, h is Planck's constant, and f is the frequency. Since the energy of a photon remains constant, the decrease in frequency is accompanied by an increase in wavelength, but the total energy of the light does not change.
So, from your frame of reference, the light does not lose energy as it undergoes cosmological redshift. The energy of individual photons remains the same, but their frequency and wavelength are affected by the expansion of the universe.