Any "right of offset" held by a financial institution is governed by:
*state court decisions, and
There is no universal answer; research and reading are required.
Regardless, the bedrock principle is that the depositor and the debtor must be the same person. If Fred owes you money that does not give you the right to take funds from an entity's account even if he is the sole owner of the entity.