Yes, you can sleep well in a windowless bedroom: darkness can support sleep, but the room also needs adequate ventilation, comfortable temperatures, and safe, locally approved use as a sleeping space. You'll need daytime light outside the room to help keep your sleep timing steady. If you keep