Consider the following premises. Barbara is sleeping. If it is cloudy, then James is a writer. James is not a writer. Can we infer the following from them? Barbara is sleeping.
That is one of the premises. Therefore, the answer is yes.