Consider the following premises. If William were a bartender, then Thomas is rich. Mary is an electrician. James is a writer or William is a bartender. James is a writer if and only if Thomas is rich. Can we infer the following from them? If Thomas were rich, then Mary is an electrician.
We cannot infer that from the premises. Therefore the answer is no.