Do fertility doctors ever tell couples they can not get pregnant because they have a immunological problem?

Rare. Possibly, and immune conditions can play a role; but it would be truly unusual that an immunological problem was 100% the reason a couple can't conceive.