Only if the destroyed planet has a large metallic core. The Earth is the densest planet in the solar system due to it metal content. Many small planets and large satellites are primarily made of rock and water ice instead. That would just cause the Death Star to rust.