In reality, carpets should dry between 4 and 6 hours; however, and here's the caveat: it's vital that the carpet be dry within 24 hours. This is because, after this time, the carpet is in danger of attracting mold spores, which will not only ruin it, but will also be harmful to health. A healthy adult is advised not to sleep in a bedroom for 24 hours after rug cleaning in Honolulu County. This absence and sufficient ventilation of the room will reduce the immediate risk of the cleaning solution containing chemicals.
I wouldn't put it there tonight, no. At the very least, not having it there means that you can ventilate the room well (window open, door closed) for everyone's benefit. But no one really knows exactly what perfumes and other chemicals in cleaning products do to our health, so I would keep it away at least until the smell disappears. Water damage to carpets is especially harmful to health.
Even after prolonged drying, it tends to remain damp for some time. It is better not to sleep in a room where such a rug covers the floor. If possible, clean bedroom rugs early in the day so you don't have to sleep in a room where cleaning chemicals are still in the air. Even if you don't know it, you could be allergic to the chemicals in professional carpet cleaning solutions.
Cleaning a carpet isn't as dangerous as placing a completely new cover on a bedroom floor, but potentially hazardous chemicals will still have to be used. Yesterday I hired a reputable carpet cleaner to clean the sofa in my living room and the carpet in the LO room because my ODD threw up on the couch and my LO has urinated and vomited on his carpet many times since he was born. I finished cleaning the carpet because it never occurred to me that the cleaning solution was what was making me sick. Once the solution is ready, apply it by hand with a sponge or scrub brush, or rent a carpet cleaning machine from a hardware store and let it do the hard work.
The act of cleaning carpets is worse than most chemicals, since mold, jellyfish bacteria, etc. that are on the carpet are released into the air. People with immunity problems, especially respiratory problems, should wait 48 hours before entering a room where they have recently cleaned carpets. The following chemicals are of particular concern and, as far as possible, any carpet cleaning solution that contains them should be avoided.
It was an unexpected and very serious reaction to the chemical compounds in the cleaning liquid I was using to clean my carpet. If that were to happen to me, I could wash the carpet again with water to remove any chemicals that might be left on the carpet. Different carpet cleaners use different chemicals; there is no single set of ingredients that all carpet cleaners use. In fact, I didn't add two plus two until a few months later, when I went back to cleaning my carpet, and the same thing happened.
If you decide to clean your carpets with a chemical solution or hire a professional carpet cleaning company to do the work for you, don't try to immediately sleep in the room.