The doors of repentance are always open, never close as long as the soul of the person has not reached his throat, as the Prophet (saws) said:
“God accepts a servant’s repentance till he gives up his spirit in death.”[1]
Allah (swt) does not want for sin or association of other with Him to prevail in any society.
[1] Musnad Imam Ahmad Bin Hanbal: Musnad of The Ones Who Narrate a lot Among the Sahabahs: Musnad Abdullah Bin Umar Bin Al-Khattab, Hadith no. 6160