Is energy always conserved?

Crazy idea but I'm a scientist so bear with me.
I think maybe the energy lost from the photons is what makes the universe expand. Energy makes more space. 
I guess to warp space we need to break the law of conservation of mass. We need to delete energy from space and that space would shrink.