Consider the following premises. It is raining. If Mary were a janitor, then Jessica is taking a plane. Jessica is not taking a plane. Can we infer the following from them? If it rains, then Mary is not a janitor.
We cannot infer that from the premises. Therefore the answer is no.