Food allergies in unborn babies...

I have been eating cold precooked prawns during my pregnancy aswell as the odd peanut butter sandwich i googled and it said that in the UK prawns are fine and I haven’t found much info on peanuts. However I have now been told by a friend that this will increase the chances of my baby being allergic to them? Should I stop eating them, I only have them in moderation.