Maybe the paint doesn't but the graffiti artists/taggers could impact the operation of the trains.
I have heard announcements saying trains delayed because of trespassers on the line, maybe some people just like a stroll along a railway embankment, but I'm sure some trespassers are spraying...