Is energy always conserved?

this is very surprising, cosmic microwave background radiation is most of the energy in the universe, so i wonder what the total energy of the observable universe were in the past, balancing against the expansion of the particle horizon