The surgery is performed under general or local anesthesia, so the procedure itself is not painful.
However, there may be postoperative discomfort and pain that is controlled with medication.