Consider the following premises. For all x, if x were rich, then x is an astronaut. For all x, if x were an astronaut, then x is rich. Can we infer the following from them? For all x, if x were rich, then x is an astronaut.
That is one of the premises. Therefore, the answer is yes.