Yes, but the Quran itself says:
4:92: And not is for a believer that he kills a believer except (by) mistake. And whoever killed a believer (by) mistake, then freeing (of) a believing slave and blood money (is to be) paid to his family unless that they remit (as) charity. But if (he) was from a people hostile to you and he was a believer then freeing (of) a believing slave. And if (he) was from a people between you and between them, (is) a treaty, then blood money (is to be) paid to his family, and freeing (of) a believing slave. And whoever (does) not find, then fasting (for) two months consecutively, (seeking) repentance from Allah, and Allah is All-Knowing, All-Wise.