The actual word “baptize” means to immerse in water. Acts clearly showed those who believed, born of the Spirit were then baptized.
It is interesting to clearly note the sequence of “events” in Acts 10 at Cornelius’ house. Peter preached the Gospel of Christ crucified, buried and three days later resurrected and now seated at the right Hand of The Father. Those assembled clearly had hearts prepared and repentant because after hearing they were filled with The Holy Spirit and then were baptized.
I think the sequence is telling. I will note even before Peter arrived we are told God looked favorably on Cornelius (he was seeking God) and God moves the necessary people (Peter) for Cornelius and others to receive the Gospel. An excellent NT example of the OT truth of God chooses and those He chooses are usually seekers of Him.
And yet another sequence showed folks being baptized FIRST, before receiving the Spirit.
ACTS 19:2, (3-7)
He said unto them, Have ye received the Holy Ghost since ye believed?
And they said unto him, We have not so much as heard whether there be any Holy Ghost.