Consider the following premises. If Thomas goes running, then James is a janitor. If James were a janitor, then Thomas is running. If Elisabeth were a soldier, then Thomas is running. If Thomas goes running, then Elisabeth is a soldier. Elisabeth is not a soldier. Can we infer the following from them? If Elisabeth were a soldier, then Thomas is running.
That is one of the premises. Therefore, the answer is yes.