Cancer during pregnancy is uncommon. Some treatments for cancer can harm an unborn baby. To prevent pregnancy while undergoing treatment, talk to your health care provider about birth control options.