Do make sure you get the right one - gear cable outer not brake cable outer in your case.
Gear cable outer is designed not to compress, so that the measured amount of inner cable pulled by the ratchet mechanism is exactly the amount that the derailleur is pulled by. It's basically parallel wire strands formed into a tube and plastic coated.
Brake cable outer on the other hand needs to be stonger, because you can pull the brake lever a hell of a lot harder than the shifter does.
It's essentially a plastic-coated long spiral wire, like a spring, so it compresses a little but that's not a problem with the brakes.
If you used brake cable outer for the gears, you'd just get slightly cr*ppy shifting (which might be OK as a get-home-from-middle-of-nowhere fix if touring somewhere really remote).
But if you used gear cable outer for the brakes, you'd risk it failing, splitting, and your brakes failing catastrophically...