Yes, but all modern cats have filler neck openings that are too small for the diesel pump nozzle. Unfortunately, there is nothing to stop you from putting gasoline in your diesel.

My wife and I were getting gas in Grand Junction Colorado at a combination truck stop/convenience-store/restaurant. At the pump next to us was the largest U-haul truck they rent, the 24 foot one with the power liftgate on the back. The driver was standing there talking with U-haul on the phone telling them it had just quit with no warning. I told my wife we were pulling out as soon as I filled the tank and were not going to eat because I didn’t want to be around when he found out he had filled a diesel truck with gasoline.

It happens. When I was stationed in CA, junior enlisted people were assigned to drive a box truck from Edwards AFB to these Marine base at Barstow. One young airman filled up the diesel truck with gas. The following week another airman, not wishing to make the same mistake, filled up the Dodge D100 with diesel!
One of the lighter misadventures, another airman made a wrong turn on the way to Barstow and ended up in Los Vegas.