No. It was my confession of faith befor man. Y-shua went into the water and took a stand, drew the line in the sand so to speak, before G-d and all man. Salvation is private, or can be, if you're not in a church. Baptism, one takes a stand. Stands not just befor G-d but G-d and man and demonstrates their decision.
I have typed this before, but I dated some guy who was/is church of christ and tried to tell me I was not saved because I did not know I had to be baptised to be saved. I wrote him a 10 page paper on baptism handed it to him and dumped him. The long and short of it is. I called on the name of the Lord, I believed in my heart I would be saved. And I was saved.
FYI: Latter I was baptised. But I got saved in February 13, 1991, the date me and the Lover of My Soul joined as one.