It's certainly not, Akanksha :P!!! Most ice-creams are milk made. Milk is made of Lactose and dogs are lactose intolerant. They may get stomach problems. Also, ice-cream can contain chocolate which is very harmful for dogs!! You should avoid products that are too sweat, too spicy or too sour.
You can give your dog yogurt which is very good in summers.