Yes, there is a special socket made for oil pressure sending units.

I've also used a water pump pliers successfully in a pinch.