Tubercular consumption: is it ever inherited?

Tubercular consumption: is it ever inherited?