Salam,
However question is that if a male has no sperm, can they borrow some one else sperm for this purpose or this is not allowed?
الجواب وبالله التوفيق
Trying to conceive a child through this unnatural method is considered impermissible and haram. Secondly, in using such a method it will be imperative that many other prohibited and haram actions be performed.
Therefore striving to conceive a child through this method will be impermissible and haram.
Reference: Fatawah Darululoom Zakriyah
واللہ اعلم بالصواب