Is it possible for a mom to pass on an allergy to penicillin to her child?

Generally no. A tendency to have allergies can be passed along in families. However, a specific allergy, such as to penicillin, does not. To become allergic to a substance, it usually takes repeated exposures to that substance.