Yes, it is possible. You need maintain customer number in vendor master record and then vendor number in customer master record. Also, you need to select clearing with customer and clearing with vendor checkboxes in vendor and customer master records.