They did. I have two relevant posts on this matter: on Medieval aqueducts, and on Medieval water matters in general.