The more senior field mandarins were not castrated and able to marry. But they had to move 300 or so miles away from the new wife’s district — that was in order to prevent nepotism, favors to the family and the creation of political dynasties.
Having worked with “civil servants,” they rarely are civil nor do they consider themselves servants to the public. Not so sure those Chinese weren’t on to something with the “chop chop” thing to keep government employees in line. ;)