Of course, its just harnessing gravity pulling down water to spin a turbine.
There are many cases where energy can be harnessed in daily activities, the biggest issue is the efficiency and cost of doing so. Most plumbing use wouldn't add up to nearly enough energy to offset the construction.