Although, we know that the church and the bible frowns at premarital sex, it’s no news many couples have sex before marriage and even get pregnant before getting married.
In turn, they face scrutiny and ridicule from the church. While it’s important to belong to a local church and get married in one, it’s not necessary, especially after the 'mistake' has been made.
Many people want the pastoral blessings that come with getting married in a church and essentially under the auspices of God, but you can get married anywhere else and have a minister officiate. It doesn’t have to be in a church building.