Yes, exactly (of course this is an artifact of setting c=1 and you have to be careful in restoring the right units when needed). However, be careful on the definition of m. One usually says that m is the rest mass, i.e. a constant that only depends on the species of the particle and not on its momentum. In this case the equation becomes [itex]E=\sqrt{m^2+\vec{p}^2}[/itex], where [itex]\vec p[/itex] is the three-momentum of you particle.