Yes, a hole in the container's bottom is necessary.
It allows the water in the soil to drain freely, allowing ample air to reach the roots. While plants have different drainage requirements, few can endure resting in stagnant water. Plants with healthy roots are healthier plants.