Be assured that the moment you placed your trust in Jesus Christ for your salvation [1] and accepted Him as your Savior, the Holy Spirit, now dwelling within you, began the process of enabling you to lead a holy life (John:14:16And I will pray the Father, and he shall give you another Comforter, that he may abide with you for ever;
See All... [2]). Therefore you need not question or doubt your salvation [1] because of any doubt about having received the Holy Spirit. —TBC
And if Christ be in you, the body is dead because of sin; but the Spirit is life because of righteousness.
—Romans 8:10
Links:
[1] https://www.thebereancall.org/taxonomy/term/57/salvation
[2] https://www.thebereancall.org/bible/1/JHN/14/16#v16