It might work, but you might need a private trainer or behaviorist. No harm in trying, just maintain control.
Remember if your dog doesnt feel well most of the time- he is really trying to keep other dogs away as he knows he is jeopardized in his hips.. hmm..
As far as his hips- he is at a good age to heal well from the hip surgery. Young dogs heal quicker than older dogs. It does take serious daily watchfullness in the healing time after the surgerey- but you want to discuss that with your vet..