Yes I agree with the statement because of the process called photosynthesis this is happening. The plant firstly with the help of chlorophyll which is present in the chloroplast. The chlorophyll firstly use up the light energy i.e. the quantum energy and with this the process of the photosynthesis will start while preparing the glucose the oxygen will be released into the atmosphere by the part know as the stomata. This process can take place only during the light it there but when light i.e. sun light is not present it cannot take place. Therefore I agree with the statement that all plants give out oxygen during day time and carbon dioxide during night time.