Do I have to ground the pump when pumping flammable fluids?

Yes. This can be done with conductive plastic pumps via the grounding lugs. If you are not using a conductive plastic pump then ground the fluid through a metallic pipe nipple at both the suction and discharge ports. Metal pumps should also be grounded.