The diseases certainly had an effect (after the Night of Sorrow and before the conquest of Tenochtitlan, smallpox struck the whole Valley of Mexico); but Tlaxcala had an effect too, and if the Aztecs' subject peoples had rallied to their arms in the same way the Tlaxcalans rallied to the Spanish (after some initial fighting against them), there's no way Cortez could have won.