The statement is false. Many organisms besides green plants produce oxygen through photosynthesis, including cyanobacteria, algae, and some bacteria. Additionally, non-green plants (like red algae) can also photosynthesize and produce oxygen using pigments other than chlorophyll.