Do you need a long build for a 10K or half-marathon?

We know the marathon requires a large training block, but what about shorter distances?