Many times it does. The so-called “lone wolves” are often found to make similar ideological arguments on social media. Of course, that ideology isn’t solely to blame for their actions. Ultimately, people are to blame for their actions.
Unfortunately, this is true. For example, Afghanistan used to be a Buddhist country until it was invaded. Regardless, extremism and terrorism are always wrong. A better approach would be to only defend when attacked, have a smart immigration policy, and to let the existing migrants live in peace.
But does it really make sense to blame Buddhism for the bad acts some Buddhists do? As far as I know, ethnic cleansing isn’t condoned anywhere in the Tipitaka.