Are allergies acquired in the womb?

But where do we acquire allergies? Can allergies be acquired while the fetus is still developing in the womb? According to a recent study, they can be.