Consider the following premises. Sarah is not a mechanic. If William were a writer, then Sarah is a mechanic. Can we infer the following from them? William is a writer.
That contradicts the premises. Therefore the answer is no.