“Peter said to them, ‘Repent, and each one of you be immersed in the name of Jesus Christ in order to have your sins forgiven, and you will receive the gift of the Holy Spirit.'”
Acts 2.38 TGOG
The terms of salvation given in the first gospel sermon, in order to establish the church as Jesus had promised, are clear. Jesus was preached, salvation was offered, and the conditions to receive it were a part of the message.
Forgiveness comes upon being immersed, not before. This is an essential understanding of the act. Have you obeyed the gospel this way?