Necessary? No. But then, neither is AC, hp, or anything else, since you can mod the game as you see fit, especially in 4e, which removed a lot of the mechanical benefits and restrictions related to alignment.
But as a hindrance to RP? Never. In our games, alignment has never been seen as a...