That's the Plan
No one would ever perform surgery if they didn't think the outcome would be beneficial.
In this case, it means that your TMJ would heal and be healthy again. That's the plan. However, this is a very difficult surgery & success rates aren't always as high as we'd like. Make sure it's your only and absolutely last option before proceeding. I would recommend at least three expert opinions up front.