It’s generally not a good idea, but if you just want it for an emergency use it should be OK as long as the switch is just an on/off switch and not a dimmer.
Smart bulbs are intended to always be on power. If you have a power outage every once in a while, it’s not a big deal, but if you regularly cut power off at the switch then there’s a danger of damaging the radio with inrush current when the power comes back on, which can significantly shorten the life of the bulb.
If you’re going to use hue bulbs, it’s better to put them on a switch controlled by a regular non-networked switch and then add a networked switch cover on top of that. That way both the switch and the bulb are always available for the next network command, and there’s no risk of damaging the bulb.
See the FAQ.