Yeah... Gandalf is a great wizard but he almost died just because he was slow sometimes and not so wise. If he could save the world with just magic then he wouldn't even need to assemble a whole ring squad to destroy Uruk-hai army, Saruman, Nazgûl squad and of course Sauron.