CF is an inherited disorder that requires 2 mutations (1 from mother & 1 from father) to lead to the clinical disease.
If you have it, you were born with it. Many states in the U.S. Perform newborn screening
that can pick the disease up at birth, but it can go undiagnosed for years in some cases.