On a friction shift if the hanger is bent in/out but not twisted straightening is not a great challenge, but I don't like the odds of figuring exactly how a derailleur is bent and where to "straighten it." I'd give it one shot and if still problematic just replace it.