Can geology of a watershed impact the water quality?

I am doing GIS data visualization for watershed geology, just curious to know can geology of a watershed impact the water quality?