Are idiopathic pulmonary fibrosis cystic fibrosis the same?

No. Two completely different diseases. CF is an inherited disorder leading to failure to clear mucus and repeated infections. It does end up with fibrosis in the lungs. Idiopathic fibrosis is a disease of unknown cause where scar tissue replaces normal lung and eventually causes respiratory failure.