Consider the following premises. If David were a poet, then Jessica is an astronaut. David is a poet or it is not raining. If Jessica were an astronaut, then it is raining. Can we infer the following from them? If it rains, then David is a poet.
Yes.