No, the thermal pump simply produces power from being on top of lava tiles. That's all. The only way to get slag is to melt scrap using the melter.