theres nothing wrong with doing this, you just need the space for a whole plant to hang upside down.
I'm not sure if you want to just chop it down and hang it up, or chop it, the trim off all the leaves, and then hang it still in one piece... but I'd recommend you trim because wilted leaves are a bitch.
also trimming a plant in one piece can be hard, especially if its a big one, so don't bight off more then you can chop.