I understand your concern and your desire for certainty.
Yes, no need to be concerned about as you received a minor shock.
Pregnant women suffering electric shock
from low-voltage current, which did not pass through the uterus
and had no or minor adverse effects on the mother, would likely have no immediate effect on a fetus.
As long as you was not going to the hospital seriosly injured from shock, your baby is fine.