I know this sounds dumb but can I prevent food allergies in the baby?

I was wondering if for example I ate a lot of peanut butter or shellfish during pregnancy if that would prevent baby from having those food allergies later on?