The stop pin is needed to keep tension on the spring inside the A knuckle. Without it, the arm doesn’t return to keep tension on the chain. Look at your two derailers above. The arm has to be behind the parallelogram or it just won’t work.
Where the stop pin comes from probably doesn’t make any difference. If it fits in the threads and is long enough, it will work.