That's a dangerous thing to do - the main hoop of the cage should be as close to the roof as possible, to keep it away from your head, as that's why we have a cage, to stop you head getting smacked.
If you're only talking less than a centimetre though then that should be fine.