Real life scenario: someone who is not saved is at the hospital with moments to live. they repent and profess faith in Christ. upon doing so they immediately die.
Are they saved?
Do they go to Heaven?
Yes.
So?
Same with Baptism, that's what Scripture says, but that's not what it means.