A water filter after the inlet of the municipal water pipe into a house seems standard over here since the 70s.

Then still debris fom the own piping could be an issue.