Nothing wrong with that at all. Fermentation produces co2 which protects the beer in the fermenter. The only time it would be an issue is when fermentation is over. Over time, the co2 dissipates and the beer can be susceptible to oxygen and issues related with that (infection, oxidation).
But for short term, during active fermentation +/- 2 weeks or so, it'd be fine.