Placing Ice directly on your skin without the use of a towel or other barrier is not good and can cause burns on the skin due to the ice causing frostbite to the skin.
Always wrap the ice in a towel or place the ice in a zip lock bag before placing the ice on your skin.