What then shall we say? That the Gentiles, who did not pursue righteousness, have obtained it, a righteousness that is by faith; but the people of Israel, who pursued the law as the way of righteousness, have not attained their goal. Why not? Because they pursued it not by faith but as if it were by works. They stumbled over the stumbling stone.
Pursuing salvation via any type of work, including baptism, is a dangerous road to follow. We must remember that we are saved by faith, not by works.