Taking malaria and typhoid medication during pregnancy can potentially have an impact on the baby's development. It is important to consult with a healthcare professional to assess any potential risks and determine the best course of action. They will consider factors such as the specific medications taken, dosage, timing, and individual circumstances. In some cases, certain medications may be safe to use during pregnancy, while others may pose risks. The healthcare provider will weigh the benefits versus the potential risks to make an informed decision. It is crucial not to self-medicate or make assumptions about medication safety during pregnancy without consulting a medical professional first.