There is documented cross-reactivity in T-cell responses: individuals who had not come in contact with SARS-CoV-2 developed an immune reaction (T-cell based) against it.
Whether this prevents infection (unlikely) or lessens the symptoms is still an open question. But the phenomenon exists.