They were allowed to rejoin if they accepted the 13th amendment. It was one of the reconstruction amendments that ended slavery and gave led to African-Americans getting their voting rights and their freedom.If they wouldn't accept it they wouldn't be allowed back.