Surgery has gotten a lot safer in the last couple decades however, there are still risks. General anesthesia used to be ten times more dangerous than it is now but it's still not zero.
Even mild may involve removal of bone and realignment of muscles, tendons, and ligaments surrounding the joint.
Source: https://www.hopkinsmedicine.org/health/treatment-tests-and-t...