Source: WeatherSTEM
All objects can emit and absorb electromagnetic radiation. A blackbody is an object that absorbs radiation and then emits radiation back out. When a blackbody is in equilibrium, it absorbs the same amount of energy as it emits. Planets can act as blackbodies, absorbing radiation from the Sun and then emitting it back out into space.