If you can see that your derailleur hanger is bent you are in some big trouble.
It is possibly bent/tweaked and the only way to know for sure is to put an adjustment/alignment tool on it and check.
If it is it is generally and easy tweak to put it back in alignment, then realign/adjust your rear derailleur.
A 5 minute alignment check is worth it.