Does A Compressed Spring Has Elastic Potential Energy?

Does A Compressed Spring Has Elastic Potential Energy? Does a compressed spring has elastic potential energy? The compressed spring has elastic potential energy due to its compressed state. Which it is released, the potential energy of the spring changes into kinetic energy which does work on the ball if placed on it and changes into