You can absolutely get a joint mortgage with a friend: I did. The real challenge is finding someone you want to go in on a long-term coliving arrangement with, agree with on how to handle home maintenance and the like, and trust not to try to screw you over.