No, it is not necessary to change the whole thing. If you just have a torn boot then you can replace just the boots. If the CV is damaged then you can just replace the half shaft. Both options are much easier than replacing the whole axle.