Can you add a graph modifier to over 100 objects at once?

Is it possible to add a graph modifier to the x coordinate of over 100 objects in one go? I’ve just animated a low-poly traffic jam and I’d like to see what it looks like with stepped interpolation for a low frame-rate.