Detergent smell

Due to space constraint, we hang adult laundry in the same aircon room that baby sleeps in. The detergent smell of the adult laundry is very strong, is it ok for the baby?