Probably, but it's not like you can't ask for forgiveness from your past transgressions. Premarital sex might be a sin, but it's not an abomination.
To avoid sin before marriage, you can agree with an unmarried woman to a temporary marriage. It is called Mutah, in Islam that ends after a fixed period of time. It is used so you can speak to a potential spouse or hang out before a permanent marriage. It can also be used if you're divorced so you can have a relationship before deciding if you want to remarry.
You must be unmarried if you’re a woman and want a Mutah marriage. You should either be a Muslim, Christian, or Jewish
Talk with your potential spouse about how long you want the temporary marriage to last. This marriage needs to have a set time frame. There is no minimum or maximum time that the marriage needs to last.
Agree upon the set dowry. It is a gift the man will give to his wife and can be anything you agree on. It doesn’t have to be a wedding ring or an extravagant gift. The dowry could be as little as a handful of fruits.
Recite the formula of words that make the Mutah legal. First, the woman, would say, “I married myself to you for the known period and the agreed upon dowry”. Then, the man, say, “I accepted”.
You do not need any officials or witnesses present when you agree upon a temporary marriage.
Live together and spend time for the length of the marriage and get to know each other.
Ending a Mutah Marriage; if you want to leave before the time period ends. The man, are allowed to end the temporary marriage before the contracted time is complete. The woman cannot terminate the marriage. He say, “I donate you the time period” to separate and terminate the contract.
Once the temporary marriage is finished, you do not need to get a divorce. You can exit the relationship immediately.
If you want to continue your relationship, you can either renew the contract again or start a permanent marriage.