I'm happy you asked this because I would also like to know the answer!
My guess would be that it's ok, as long as your room is ventilated. I don't think it would be good for him if the room filled up with smoke, animals are usually more sensitive to things like that!