All in all, in this study, we provided the predictive risk map of COVID‐19 infection in various types of cancer patient cohorts, and a possible mechanism that offers explanations that the expression level of ACE2 associates with immune infiltration, leading to better prognosis in specific types of cancer, especially in ovarian cancer, and poorer prognosis in breast cancer. The gene discussed is ACE2; the disease is ovarian cancer.