Should I replace the whole extension cord if the end gets damaged?
No, just replace the plug end. Buy a replacement plug at any hardware store for about five bucks, cut the damaged end off, strip the wires, and screw them into the new plug. If the cut is in the middle, use a waterproof in-line cord connector instead of electrical tape. Both fixes are cheaper and faster than replacing the whole cord.