Earth Energy Imbalance: The Sun versus CO2

Do solar and greenhouse gas radiation affect ocean heat content in the same way?