It depends, [CAM succulents](https://en.wikipedia.org/wiki/Crassulacean_acid_metabolism) do their gas exchange at night, and then close their stomata and do the photosynthesis during the day. It's a dry-climate adaptation, to lose less water in the process of exchanging the previous day's O2 for fresh CO2.