Does grass absorb the sun's energy?

Indeed it does, and by the process of photosynthesis, it converts the CO2 from the air, and the Hydrogen from the water into complex carbohydrates. The chemical chlorophyll which enables this process is green in colour.