Ketamine has been reported to impair the capacity for learning and memory. This study examined whether these capacities were also altered in the offspring and investigated the role of the CREB signaling pathway in pregnant rats, subjected to ketamine-induced anesthesia. On the 14th day of gestation (P14), female rats were anesthetized for 3 h via intravenous ketamine injection (200 mg/Kg). Morris water maze task, contextual and cued fear conditioning, and olfactory tasks were executed between the 25th to 30th day after birth (B25-30) on rat pups, and rats were sacrificed on B30. Nerve density and dendritic spine density were examined via Nissl’s and Golgi staining. Simultaneously, the contents of Ca2+/Calmodulin-Dependent Protein Kinase II (CaMKII), p-CaMKII, CaMKIV, p-CaMKIV, Extracellular Regulated Protein Kinases (ERK), p-ERK, Protein Kinase A (PKA), p-PKA, cAMP-Response Element Binding Protein (CREB), p-CREB, and Brain Derived Neurotrophic Factor (BDNF) were detected in the hippocampus. We pretreated PC12 cells with both PKA inhibitor (H89) and ERK inhibitor (SCH772984), thus detecting levels of ERK, p-ERK, PKA, p-PKA, p-CREB, and BDNF. The results revealed that ketamine impaired the learning ability and spatial as well as conditioned memory in the offspring, and significantly decreased the protein levels of ERK, p-ERK, PKA, p-PKA, p-CREB, and BDNF. We found that ERK and PKA (but not CaMKII or CaMKIV) have the ability to regulate the CREB-BDNF pathway during ketamine-induced anesthesia in pregnant rats. Furthermore, ERK and PKA are mutually compensatory for the regulation of the CREB-BDNF pathway.