Consider the following premises. It is late if and only if William is playing squash. William is playing squash if and only if Charles is drinking water. It is not late. Can we infer the following from them? It is late if and only if William is playing squash.
That is one of the premises. Therefore, the answer is yes.