Ice is helpful if there is significant swelling and pain, if it then allows you to move more. Ice for more than that, and for longer than the day or two after injury is not as helpful.
The trick is to control inflammation, just as not enough inflammation is not good, too much inflammation is not good. It's a matter of degree.
For more info on dealing with training-related injuries, check out this guide.