Yes, several lifestyle factors can weaken the immune system, such as a poor diet, lack of exercise, chronic stress, inadequate sleep, smoking, excessive alcohol consumption, and certain medical conditions.