Self insemination TMI

My husband has been suffering erectile dysfunction during sex for the last two months whilst trying for a baby but can successfully masturbate , we have seen a dr and he wasn’t much help. tonight we tried self insemination using him going into a cup then I syringe it in, has any one had success this way, is it likely to work ?