Consider the following premises. If James plays a game, then David is making tea. If it is sunny, then James is playing a game. It is cloudy. If it is cloudy, then it is sunny. If William were a lawyer, then David is not making tea. Can we infer the following from them? If William were a lawyer, then David is not making tea.
That is one of the premises. Therefore, the answer is yes.