In 3.5, nope. Getting hit by the AoO provoked when making a ranged attack does not automatically disrupt the ranged attack. Unless your opponent disarms or kills you or something with their AoO, your ranged attack will go off just fine no matter how much damage you take.
I don't think d20 Modern changes that at all, although I'm not as familiar with the minutia of d20M any more.