If you dreamed of having a surgery, it can mean you are going to face a major, invasive change. This can be for your better or worse.
If you dream of another person facing surgery, it can mean you are afraid of change that is happening for that person.
If in real life you are close to a person who has suddenly turned cold towards you, then this dream speaks about this theme. That person is facing surgery of change, or has gone through that surgery.