Customers and Cost Centers linking

Can l link cost centers to customers , l have a setup for multi-branch and each branch maintains its own customers and users from another company should not view customers from another branch

First, create a custom field in the customer master and set a client script in the sales transaction. When the user clicks on the customer, the cost center will be fetched. You can set it according to your own logic and develop this scenario.