Yes. There are restrictions on food items that can be taken into the US, and this includes items that can be bought in Terminal 2 at Dublin Airport prior to screening. You should declare all food items, carry them in hand luggage and present them for inspection at the US preclearance facility.