No, wolfberry belongs to the Solanaceae family, while Three Needles belongs to the Berberidaceae family.
Pictures of wolfberry fruit
There are several varieties of three needles, one of which is somewhat similar
You can see the difference if you identify them carefully. The three-needle plant has one characteristic
So as you can see from the picture, the two are not the same plant, so please pay attention to distinguish them.