Ahead of time? If you read
Acts 11 you'll see Peter defended his actions in Acts 10.
The Gentiles Receive the Holy Spirit
Acts 10:44 While Peter was still speaking these words, the Holy Spirit fell on[
dt] all those who heard the message.[
du] 45 The[
dv] circumcised believers[
dw] who had accompanied Peter were greatly astonished[
dx] that[
dy] the gift of the Holy Spirit[
dz] had been poured out[
ea] even on the Gentiles, 46 for they heard them speaking in tongues and praising[
eb] God. Then Peter said, 47 “No one can withhold the water for these people to be baptized, who have received the Holy Spirit just as we did,[
ec] can he?”[
ed] 48 So he gave orders to have them baptized[
ee] in the name of Jesus Christ.[
ef] Then they asked him to stay for several days.