Everything exposed to the sun will heat up until the energy it emits balances out the incoming energy.
Being a larger mass just means an object will take longer to heat up.