If you have taken all reasonable precautions to avoid suffering an allergic reaction yet you still suffer one due to someone else’s negligence or a breach of their duty of care, then yes you should be able to claim compensation.