No. Under the old CBA, for players under 35 years old (or more correctly under 35 when the contract comes into effect) , if the player retires, the player's salary does not count against the salary cap.