Verse 3 of Suratul Noor Q 24  declares the prohibition of marrying those who commit zina and have not repented. But if the fornicator repents, then it is permissible to marry him or her.