Are you certain the derailleur is bent, and not just the hanger? Your LBS might be able to straighten the hanger, and you definitely can buy a new hanger and install it. But if the derailleur itself is really tweaked, you might have to replace it.
Usually that doesn't happen because the hangers are meant to bend instead.