No, defragging is completely optional and your PC can run perfectly fine without doing so. But it's still arguably worthwhile to eke out the best possible performance.