Yes, it is. Allah emphasizes in the Quran that prophet Muhammad (PBUH) is a mercy towards all human beings: “We did not send you but as a mercy to all the nations” (21: 107). [See: Is Islam a Religion of Peace?] In social relations, also, The Quran defines Muslims as moderate people; “Muhammad, the Apostle of Allah, and those who are with him are hard against the faithless and merciful amongst themselves. “ (48:29)
By referring to the above verse and by going through its interpretations we find out that “Muslims should be harsh on infidels. Who are these infidels? Muslims should not be harsh on anyone who does not believe in Islam. They should behave kindly towards those who are not opposed to them, who do not plot against them, and who do not seek to wipe out their nations - even if they follow other faiths.” While at the same time “Muslims should be harsh on those who fight against Islam and their identity, nationality, country, independence, honor, dignity, traditions, culture, and values.” Therefore, it is completely rational for Muslims to defend themselves while their values are being attacked, and it has no contradiction with their peaceful nature.