Can you use a ram pump to create unlimited energy?

Let’s say you have a dam generating hydroelectricity. After the water goes through the turbine, can it be pumped back into the dam using a ram pump? I feel like this should not work, but I am very uneducated on the topic. Thank you!