Is an allergy to penicillin inheritable?

Not likely. You may inherit a propensity to develop allergic reactions, but must be exposed to the agent to which you become allergic before you are considered penicillin allergic.