Background: Acting as a viral entry for coronavirus to invade human cells, TMPRSS2 has become a target for the prevention and treatment of COVID-19 infection. Before this, TMPRSS2 has presented biological functions in cancer, but the roles remain controversial and the mechanism remains unelucidated. Some chemicals have been reported to be inhibitors of TMPRSS2 and also demonstrated other pharmacological properties. At this stage, it is important to discover more new compounds targeting TMPRSS2, especially from natural products, for the prevention and treatment of COVID-19 infection. Methods: We analyzed the correlation between TMPRSS2 expression, methylation level, overall survival rate, clinical parameters, biological process, and determined the correlation between TMPRSS2 and tumor-infiltrating lymphocytes in the tumor and adjacent normal tissue of adenocarcinoma (LUAD) and squamous cell carcinoma (LUSC) respectively by using various types of bioinformatics approaches. Moreover, we determined the correlation between TMPRSS2 protein level and the prognosis of LUAD and LUSC cohorts by immunohistochemistry assay. Furthermore, the cancer immunome atlas (TCIA) database was used to predict the relationship between the expression of TMPRSS2 and response to programmed cell death protein 1 (PD-1) blocker immunotherapy in lung cancer patients. Finally, the putative binding site of ginsenosides bound to TMPRSS2 protein was built from homology modeling to screen high-potency TMPRSS2 inhibitors. Results: We found that TMPRSS2 recruits various types of immunocytes, including CD8+, CD4+ T cells, B cells and DCs both in LUAD and LUSC patients, and the correlation between TMPRSS2 expression and CD8+ and CD4+ T cells are stronger in LUAD rather than in LUSC, but excludes macrophages and neutrophils in LUAD patient cohorts. These might be the reason that higher mRNA and protein levels of TMPRSS2 are associated with better prognosis in LUAD cohorts rather than in LUSC cohorts. Furthermore, we found that TMPRSS2 was positively correlated with the prognosis in patient nonresponse to anti-PD-1 therapy. Therefore, we made an inference that increasing the expression level of TMPRSS2 may improve the anti-PD-1 immunotherapy efficacy. Finally, five ginsenosides candidates with high inhibition potency were screened from the natural chemical library to be used as TMPRSS2 inhibitors. Conclusion: All these may imply that TMPRSS2 might be a novel prognostic biomarker and serve as a potential immunomodulator target of immunotherapy combination therapies in LUAD patients nonresponse to anti-PD-1 therapy. Also, these findings may suggest we should pay more attention to LUAD patients, especially those infected with COVID-19, who should avoid medicating TMPRSS2 inhibitors, such as ginsenosides to gain prophylactic and therapeutic benefits against COVID-19.