Yes, proper ventilation is necessary for AC as well because it also emits heat, hence ventilation is necessary.