They did it and with success. Sadly when people are having a hard time they will be always search for someone to blame, and that’s why those populist nazis/communists/socialists/fascists come in.
They always blame the problems on a specific class of people, then they present themselves as the “solution”.
Trump did the same with the mexicans, and it worked.