Tracking codes

I work in the car sales business, I need cost centers based on the types of cars to know the expenses of each type and its revenues
And also determine the sales of each salesperson
So do the tracking codes enable me to do this together?

Since it’s a “matrix”, I suggest to use tracking codes for cars which have both revenues and costs and custom fields for sales persons.