Yup! sand is perfectly fine, I personally use chinchilla sand but make sure it's not chinchilla dust, as this can cause respiratory issues. But you can use chinchilla sand or children's play sand as long as you put it in the oven for a bit to kill off any unwanted bacteria/parasites. Most hamsters love playing and rolling around in it, plus for my long haired Syrian I feel it makes her hair shinier! I haven't heard of a hamster trying to eat the sand, most just roll around and pee/poo in it
if you try it let me know how it goes!
hamsters can be so silly sometimes!