It won't explode, supposedly, but diesel can still burn. Also, you can't rule out the possibility of an electrical fire.

For some automotive fires, a simple extinguisher might not be enough... but it's an added safety cushion that might help you get out safely in case of an emergency.