A Catholic who has an abortion is automatically excommunicated "Latae Sententiae"
A contrite confession of their sin can allow them to enter back in union with the Church if the denounce abortion for the rest of their lives
Canon 1398: A person who procures a completed abortion incurs a latae sententiae excommunication.