Consider the following premises. If it is sunny, then Mary is listening to a song. If it is sunny, then Mary is listening to a song. If Mary listens to a song, then it is sunny. Can we infer the following from them? If it is sunny, then Mary is listening to a song.
That is one of the premises. Therefore, the answer is yes.