Repentance is one of the elements of salvation, as is belief, as is confession of belief, and as is baptism. They all are necessary. John's baptism was stated as being the baptism of repentance for the forgiveness of sins, Luke 3:3, Mark 1:4. Likewise is it so in Acts 2:38.