No, there is no contradiction.
Work Step by Step
In fact, Einstein’s famous relation supports the principle of conservation of energy. The equation shows that mass and energy are, in some sense, the same. For example, it explains “missing mass” in nuclear reactions by including mass as a form of energy.