Cancer during pregnancy is rare, but it does happen. Cancer itself rarely harms the baby, and some cancer treatments are safe during pregnancy.