Is the method of distilling only for seperating liquids from each other ?

No. It may be used to separate solids dissolved in liquids, too. For example, a solution of salt and water may be seaprated by distilling the water off and the solid NaCl will be left in the pot.

To get this answer on your own, you can begin by understanding the process of distillation. Distillation is a method of separating mixtures based on the difference in boiling points of the substances involved. By heating a mixture, the component with the lower boiling point will vaporize and can then be condensed back into its liquid form. This condensate will be relatively pure, as it will not contain the other components with higher boiling points.

In the case of distilling a solution of salt and water, the mixture is heated to evaporate the water. As the water vaporizes, it leaves behind the solid salt, which does not evaporate at the same temperature. The water vapor is then collected and cooled to condense back into liquid water.

Therefore, through the process of distillation, not only can liquids be separated from each other, but solids can also be separated from liquids. It is an effective method for separating components based on their differing boiling points.