It's definitely ok to have friends and see each other socially. Probably not a good idea to get involved until you wrap up the pregnancy and divorce. While it sounds like you are handling things well, you are not really free yet. I hope all goes well for you!