This is not uncommon when replacing hinge pins. Basically the door hinges wear and if someone over the years adjusted the door with worn pins and you replace them the door will no longer line up. It is possible that the hinges are bent as well if this suddenly happened because something happened to the door but even if that is the case, you will have to realign the door after replacing the hinges as well.
I would suggest going through the alignment process attached and if you can't adjust it enough to get all the gaps correct, it is because the hinges or door itself is bent.
Let me know if you have questions but by far the most common fix it just making some small adjustments and all is good.
Images (Click to make bigger)
Friday, April 17th, 2020 AT 3:24 PM