Consider the following premises. If William listens to a song, then John is sleeping. William is listening to a song if and only if Michael is playing squash. If John sleeps, then Michael is playing squash. Can we infer the following from them? The fact that William listens to a song does not imply that John is sleeping.
That contradicts the premises. Therefore the answer is no.