Pulmonary fibrosis is not contagious. It is not an infectious disease, therefore it is not transmitted from person to person.
Although one of the symptoms is dry cough, there is no need to worry about it, since dry cough cannot spread the disease. You are not at any risk of contracting the disease, neither family members nor people close to the patient. Nor can it be transmitted sexually transmitted. Its origin is usually unknown or autoimmune with a certain genetic predisposition. Its appearance has been recently linked to exposure to feathers, birds and fungi.
Some factors that may aggravate or favor the disease are tobacco and gastroesophageal reflux.