Yes, photosynthesis is taking place in the plant even if it releases carbon dioxide and absorbs oxygen. Plants perform respiration throughout the day and night. They release carbon dioxide and absorb oxygen during respiration. However, during the day the carbon dioxide released by them is utilised for photosynthesis.