No, cordless nail guns do NOT need oil.  It may actually cause damage.  When someone tells you to make sure and oil your nail gun, it’s because they assume you’re using a pneumatic nail gun.  Oiling these products helps to extend the life of the o-rings and seals in them.  This is not needed for a battery-powered device.