Technically you could but you shouldn't.It is extremely important for any species to have a secure top!Accidents happen,and it is too easy for a hamster to end up chewing a hole into a wall or chewing a cord and getting electrocuted or eating something toxic