Yes, that is correct. Clearly it is not simple to describe how the theory that energy is quantised explains black body radiation curves...
I have read that Planck used statistical mathematics of a very high degree to come up with a formula to explain the curves. For example take a look at...