yes
Most hydroelectricity is generated from large dams built across large rivers. A smaller amount comes from turbines in rivers, bays and swift-moving tidal races.
You have just described a hydroelectric power system.
hydropower
They are damed to provide hydorelectric power. Some power plants of this kind on Central America include: Guatemala - Renace II (Cahabon River) Panama - Chan II (Changuinola River) Honduras - El Cajon (El Cajon river)
A dam is typically built to contain the flow of water. Dams are structures built across rivers or waterways to control and regulate the water flow, store water for various purposes, and generate hydroelectric power.
Hydroelectricity is generated by building dams or waterwheels wcitch flow through turbines to generate electricity.
They ran on water power
Because these new machines ran on water power, most mills were built near rivers.
Rivers supplied water as a resource, water power in the form of water mills and transport for goods.
Steam energy allowed factories to move away from rivers.
Steam engines do not need to be built next to rivers or streams.
Because they provided water power to run the machinery and a place to dump their waste