Yes, that's what the pixel scanning does in this set of subs. Just like for quest item marking, I use this sub to locate the "Buy" in the context dropdown of the NPC. So it should handle any position changes found from NPC to NPC.
To be honest, it's been so long since I've looked at these so I kinda forget how they work. lol