Consider the following premises. If Richard listens to a song, then David is a lawyer. It is windy or David is not a lawyer. It is windy if and only if Richard is listening to a song. Can we infer the following from them? If Richard listens to a song, then David is a lawyer.
That is one of the premises. Therefore, the answer is yes.