Yes, you can do that with no problems. Don't know how that will affect the warranty though...
You can either cut the bad section out and resolder/heatshrink the ends together; or for a cleaner look, get a servo connector kit and put new pins/connector at the end of the good section.