Consider the following premises. James is listening to a song. Mary is a carpenter. If James listens to a song, then Linda is happy. Can we infer the following from them? Linda is not happy.
That contradicts the premises. Therefore the answer is no.