It is possible a "food allergy" could effect hemorrhoids. If your body is "allergic" to a specific substance and you have a history of your skin reacting to the same substance you anus (a sensitive skin area) could also react.
More skin information available at: rashremedy.com