Sure. What ditches aren't for, and vary greatly wrt, is discharging all inputs out to sea or or a large body of water for "sufficient" dilution.
Ditches can be sealed (concrete lined, with a membrane underneath) or, say, just dirt.
Dirt ditches with a long run filter .. heavier particles drop out, weeds and other organics grab onto various compounds, etc. Those things that filter out and layer into a ditch and can then concentrate over time (subject to terms and conditions).
A reasonable question, that should be asked of any industrial area, is whether dirt ditches, leaky pipes, the whole deal, are accumulating toxins over a decade or more ... and what the impact and remediation plan is for that.
Worst case, ditch line concentrates leach down into a water table close enough to an extraction pump that goes to water food or be drunk by people. (Or later in time earthworks for housing kick up a dust layer that just happens to be mostly "20 years of bad ju-ju")
Not insurmountable, something to be wary of, these things have happened.