Consider the following premises. Mary is not a soldier. If Thomas plays squash, then Mary is a soldier. Can we infer the following from them? James is not a taxi driver.
We cannot infer that from the premises. Therefore the answer is no.