Yes. After describing those who committed shirk, murder, and fornication, Allah says that whoever repents, believes, and does righteous deeds — "for them Allah will replace their evil deeds with good deeds, and ever is Allah Forgiving and Merciful" (Quran 25:70). The scholars differ on the exact mechanism: some say the very sins are transformed into good deeds by Allah's grace, others that the person is given the ability to replace old sins with new obedience going forward. Either way the verse displays the vastness of Allah's generosity toward the one who returns to Him, and a similar meaning appears in the hadith reported by Muslim about the last man to leave the Fire whose lesser sins were exchanged for good deeds.
Q&A · Repentance & Sin
Is it true that Allah can turn a sinner's evil deeds into good deeds after sincere repentance?
Informational, not a personal fatwa. Consult a qualified scholar for rulings on your situation.