Soft serve

Can I have that while pregnant? Some people told me yes but others told me listeria