Answer
The first mistake is that sound doesn't travel through the vacuum of outer space, where there is no air or other medium.
The second mistake is that even if sound could travel to you, light travels so much faster than any sound wave that you would see the distant explosion long before you would hear it.