With number 3, "Did you help me ...?" doesn't make sense. The speaker would know whether or not the other person had helped the speaker.
Number 4 is OK if it fits the context.
If numbers 3 and 4 are supposed to relate to the same circumstances then perhaps 3 should be "Did you help me by asking your friend if I can join them?"
Interested in Language