Change material of instances

Is it possible to have each instance of an object have a different material?