No. It would make a nice compression on the protons of that matter making a nice nuclear explosion for sure. Depending on the mass of the planet and what kind of planet it also would pass the planet like a knife through hot butter (taking part of the planet with it and leaving a hole behind).