No, Photosynthesis is where plants turn sunlight into food, the plants respiration (breathing) is why there is so much oxygen, as it converts the carbon dioxide we breathe out into oxygen.
Oxygen produced by plants comes from the carbon dioxide and water that they take in. Carbon dioxide plus water is turned into oxygen and sugar during photosynthesis.