If you are not willing to mute/ignore IMs while focusing they can be distracting and reduce productivity. However, if you aren't willing to mute/ignore I think the problem is not with instant messaging but your personal focus. Any form of communication can interrupt your workflow if you let it.