Prescription medications can have varying effects on neonates depending on the drug class. For example, antidepressants like SSRIs can lead to withdrawal symptoms or pulmonary hypertension in newborns. Antiepileptic drugs (AEDs) such as valproate can increase the risk of congenital malformations. It is crucial for healthcare providers to carefully weigh the benefits and risks when prescribing medications to pregnant women.