Surprisingly, sort of.
It won't alter the underlying genetic condition, but there has been at least one case report that taking these CFTR modulators during pregnancy can improve the condition of the fetus/newborn:
https://www.sciencedirect.com/science/article/pii/S156919932...
https://med.stanford.edu/news/all-news/2023/07/cystic-fibros...