I've seen it on the floor a couple of times, however, it is a risk. I would really not advise it especially if you have other pets like cats/dogs or if your hamster is kept in a busy room.
As mentioned above the Ikea Kallax units are perfect to hold it up