Agree that the cable can't be seen in the pic but if some strands are broken it should be replaced. Plus the ferrule, which should cover the end of the housing including the reinforcement. Ideally, housing should also be replaced. The ferrule does not screw into the shifter.
__________________
Bacchetta Giro A20, RANS V-Rex, RANS Screamer