YES, the fuel is supposed to be filtered at the diesel-pump when you buy it, but I have seen many pumps that had no filter at all.
Also, in these over-20-year-old trucks, there will be all manner of "algae" sludge and crud sloshing around in the tanks.
Plus, many many of them have had the broken draw-straw replaced with an open-ended rubber-hose.
I personally experienced a very aggravating engine shut-down situation and almost never found the culprit; when I did find the problem, it was a big slug of **** covering the impossible to see screen inside the pump; this screen cannot be seen until all added fittings are removed from the pump, not something you need to be doing beside the road.
Since that episode, my fuel leaves the tank and first goes through a GoldenRod unit

, then inches before either pump (electric or mechanical) is one of those simple see-thru in-line filters.(My main fuel-pump is mechanical and I have an electric fuel-pump in a check-valve protected BY-PASS line, such that merely flipping a switch brings the electric-pump into play, routing fuel AROUND the mechanical-pump.)
Had I had an in-line filter when the engine shut down, the problem would have been easily diagnosed and I would have been going again in only a couple minutes, instead of trouble-shooting for hours.