Yes rock salt will make your ice in the cooler last longer.
You can either mix rock salt in with the ice in the cooler or freeze some rock salt in some water to make rock salt ice that will last longer than regular ice in your cooler.
The rock salt reduces the freezing point of the ice so the ice will last longer in the cooler.