Capsule endoscopy is generally not recommended during pregnancy due to potential risks to the developing fetus.