Yes, a rainbow baby is a baby born after miscarriage, ectopic pregnancy, molar pregnancy, termination for medical reasons, stillbirth or neonatal death.