Had he managed to become the Holy Roman Emperor, perhaps.
But by 16th century, Hungary simply didn't have resources to compete with the Ottoman Empire, even with a king like Matthias at the helm. And Jagellons, while not exactly incompetent, were a far cry from Matthias himself.