Yes, lifestyle factors can influence the immune system. Chronic stress, lack of sleep, sedentary lifestyle, smoking, excessive alcohol consumption, and poor dietary choices can weaken the immune system over time. Adopting healthy lifestyle habits can have a positive impact on immune health.