The Catholic Church teaches that baptism is necessary
for salvation after the promulgation of the Gospel for everyone,
both children and adults.
John 3:5
Jesus answered (Nicodemus), "Amen, amen, I say to
you, no one can enter the kingdom of God without
being born of water and Spirit."