I'm not sure what sort of Catholicism you're representing, but there's no claim or requirement in Church law that I'm aware of that a couple who gets pregnant before the wedding "loses the privilege of receiving the Catholic sacrament of marriage". In fact, that would be silly: equivalent to excommunication.
Many priests won't perform such a wedding until some time after the baby is born, though, because they think marital consent is not very freely given when a pregnancy is involved, thus rendering the marriage's validity suspect. It has nothing to do with anyone's sin, and everything to do with the degree to which people are, or are not, acting freely in that situation.
That's great to hear. Although only God can truly know what is in a person's heart.