Contractor's liability

When a general contractor does work under a time and materials contract, can or should he be held responsible for defective materials that were selected, purchased and provided to him by the customer?