Molecules in every state - liquid, solid and gaseous - rotate the plane of linearly polarized light - it doesn't matter, because this rotation arises from inherent asymmetry of molecules, which is causing their optical activity
More to the point, not only water solutions of sugars, but also their crystals, molten sugars and even vapor, rotate the plane of linearly polarized light. If you're asking specifically about sucrose checking this may be problematic as it's decomposing during melting, as you can read in this questionthis question and here, but I think it still can be done, under vacuum.
You can also check these related questions about chiral gaseschiral gases and rotation of the plane of polarization by moleculesrotation of the plane of polarization by molecules