Yes, forgiveness is attainable in Islam for those who have self-harmed in the past. Allah is the All-Forgiving and Merciful. It is important to sincerely repent, seek forgiveness, and strive towards self-improvement and healing. Seeking professional help and addressing underlying issues is also crucial for a healthier future.