Not exactly. If I have a trait to become infertile at a certain age, then other members of my kin group might also have that trait. If the trait causes more of my kin group to survive long enough to have their own offspring, then we outcompete the other members of the population that don’t have the trait.