In summary, this research highlights the roles of TRUB1, PLEKHA7, and FABP6 as hub genes, the underlying pathways and TF–miRNA networks, and the potential impact of these genes on immune cell activity in the development of depression and COVID-19. This evidence concerns the gene TRUB1 and major depressive disorder.