My parents brought some haloween sweets (even though they do not celebrate it) at a time far away when the kuffar celbrate it. they have clear picture of haloween stuff.
am i allowed to eat it
There is nothing wrong with buying this candy at a time other than the celebration, because that is not regarded as participating in the celebration or helping with it.
For more information see the answer to question no. 90026
And Allah knows best.