Does Salvation Require Baptism?

My pastor walked us through Cornelius’s household in Acts 10 years ago, and it was the first time I saw baptism as obedience rather than a requirement.