Mr. Wallace, I have reviewed some of your previous post. You are a well informed individual with accurate information in your postings. You have ask a simple question that has a very complex answer. In short: Yes.
Question: immune reactions to antigens are they genetic? (ok I worded it differently) First, an antigen is a molecule that an immune cell responds to: pollen, bee venom, dust... 2. The short answer is yes there are genetic factors passed on by the parents to the child. Penicillin is a good example but does not mean for certain. However, when immune cells acquire their ability to recognize an antigen, there is a process that is completely random whereas an immune cells responds to a specific antigen. The odds are one in a billion that an immune cell will respond to some common antigen such as a specific pollen or bee venom. This explains why a child can have reactive sinuses whereas siblings and both parents do not react.
So the ability to react to pollen, bee venom or whatever can be either inherited or can be a random event on a molecular level at creation of the original immune cell.
Mr. Wallace, I have tried to explain a with a simple answer. The immune system is complex so please text if I have created any confusions.
Now understand we have not discussed anaphylactic shock and this is beyond the scope of this text.
For your information: I am a retired genetic engineer MBIO, I worked exclusively on bacteria causing human disease.