If a creature is immune to cold and is hit by “Ray of Frost” do they suffer the 10-foot speed penalty?

If a creature is immune to cold and is hit by “Ray of Frost” do they suffer the 10-foot speed penalty in #DnD 5E?