Engine cut off

I have a 98 Jeep Cherokee 4.0L. Starts fine, after the engine warms upand while driving it cut off. I’ll sit there a while let cool it starts again. The only thing I have not checked is the fuel system. Could this be the problem?