It is likely that the flu was a contributing factor, but only one factor. Starting in 1918, Germany was hit by:
Spanish Flu 1918-1919
Defeat in the Great War
Collapse of the Hohenzolleren regime 1918
Occupation of the Rhineland 1918
Attempted Communist Revolution 1918-1919
Humiliation of the Treaty of Versailles in 1919
Hyperinflation of the wartime Papiermark 1919-1923
Political instability of the Weimar Constuitution 1919-1933
A global depression 1930-1933
And the Rise of National Socialism 1920-1933
So yeah maybe the Spanish Flu was a factor, but I wager that just maybe some of these other things were a bit of a factor as well.
Also don’t forget that Adolph Hitler accurately predicted the vulnerability of the German economy to loans floated to the Wiemar Republic by various US entities. With the Great Depression smashing the US economy, and the recall of those loans, the German economy was further impacted by the crisis then it would otherwise be.
Many Germans than saw Hitler as some kind of oracle/prophet.