Consider the following premises. If it rains, then William is driving a car. It is raining or John is a writer. If William drives a car, then Barbara is drinking water. Barbara is not drinking water. If Barbara drinks water, then William is driving a car. Can we infer the following from them? If William drives a car, then Barbara is drinking water.
That is one of the premises. Therefore, the answer is yes.