Yep. That's why you don't move towards an Archer using the Spitting Cobra's Stance. =)
Additionally, remember that Spitting Cobra gives you an Opportunity Action, not an Opportunity Attack. This is important for two reasons.
1) You can't make Opportunity Attacks with a ranged weapon. Opportunity Actions are not limited to only melee attacks though, which is why the stance works.
2) Things that specifically provide bonuses to an Opportunity Attack (such as the Fighter's Combat Superiority ability) wouldn't work with the Spitting Cobra Stance since it's an Opportunity Action.