Is a flat a house our apartment?
If it's your house, yes. Rented. Yes, with owners consent.
If it's your apartment, as long as neighbors dont notice strong smells(complain) and property manager doesnt care I would.
Than again, your in the UK, dont know your laws lol. Best of Luck!