Yes, we are told we will receive the Spirit if we believe the entire message, repent and submit to water baptism in the name of Jesus. However, that does not mean it automatically happens at that precise moment. We see this in the case of the Samaritans. Yes. They did receive the Holy Spirit as promised but it occurred days later. (Acts 8:12-18) All components are required, but the sequence differs as confirmed in scripture.
That's why they had not received the Spirit.