I do not doubt that all those who have received Baptism anywhere and from whomever do have Baptism, as long as it was consecrated with the words of the Gospel and they received it without pretence on their part and with some degree of faith. However, it would not avail them for their spiritual salvation if they were lacking in that charity by which they might be implanted in the Catholic Church.
Saint AugustineIt is not the being seen of men that is wrong, but doing these things for the purpose of being seen of men. The problem with the hypocrite is his motivation. He does not want to be holy; he only wants to seem to be holy. He is more concerned with his reputation for righteousness than about actually becoming righteous. The approbation of men matters more to him than the approval of God.
Saint Augustine