If you repent from and regret any sin, Allah will forgive you. Allah says:
Say, “O My servants who have transgressed against themselves [by sinning], do not despair of the mercy of Allah. Indeed, Allah forgives all sins. Indeed, it is He who is the Forgiving, the Merciful.” (39:53)
Even if you do not repent and regret, you can hope that Allah forgives you except for shirk. Shirk cannot be forgiven except when you repent and regret. Allah says:
Indeed, Allah does not forgive association with Him, but He forgives what is less than that for whom He wills. And he who associates others with Allah has certainly gone far astray. (4:116)