Can a ranged rogue effectively stand back and sneak attack opponents every turn with a ranged weapon while their allies fight on the front line?

Rogues can use ranged weapons to make sneak attacks. Also, the rogue rules state that:

You don’t need advantage on the attack roll if another enemy of the target is within 5 feet of it, that enemy isn’t incapacitated, and you don’t have disadvantage on the attack roll.

Does this mean that basically a ranged rogue can stand back and sneak attack opponents every turn as his buddies are fighting with them on the front line? Did I miss some rule about shooting into melee or does that sound pretty mighty?