Yes, you can do that, but instead of opened windows, you need to turn on fans, for example, to ventilate the room.