Yes, the body is having energy even it is not in motion. That is due to by virtue of its position. This energy is called the Potential Energy.
Gravitational potential energy, P=mgh
Where m = mass of body g = acceleration due to gravity and h = height reached