Can defendant be kin to judge and lawyer?

The defendant can be kin to the lawyer, but a judge would probably have to recuse himself. Which means he can't sit in judgment because of interest or bias.