Yes, it's necessary. However, Intel and AMD give you a moderately good one with the CPU, called a stock cooler (except LGA2011, where you have to get your own).
If you're OCing, you'll want an aftermarket one.
Without any cooler, the chip will smoke.