Yes, most plants, including trees, perform photosynthesis to convert sunlight into energy and produce oxygen.