Correct! Salt and sugar both dissolve in water. They both form homogeneous mixtures (that is, solutions).
The material that gets dissolved into a solution is called the solute. The other material is called the solvent. Usually, the solvent is present in a larger quantity in a solution.
In the solution of sugar being mixed with water, which is the solute?