It's obvious that a Catholic that became a heretic, or a schismatic, or an apostate, which is to say they weren't Catholic anymore, if they abjure their error prior to the sacrament of penance, they become once more Catholic, albeit dead members, until the sacrament is received or if they manage to make a perfect act of contrition.