In general, people with immunodeficiency can work, but it all depends on the degree of violation of each person, as some have control over the disease, others however are affected in such ways, without physical condition to perform any physical effort.
So the answer is: it DEPENDS