Patients who were taking hydroxychloroquine for their lupus have not been getting sick. Thus one would think that the answer is yes. The more that one can do to strengthen the immune system will guard against infection.