Not necessarily. After Omar Mateen shot up a nightclub, the media went all out to tell us that Islam had nothing to do with it, even though Mateen had pledged allegiance to ISIS.
White person commits a mass shooting: blame white people.
Muslim commits a mass shooting: blame white people.
It's all about the Narrative.