Can you fix your marriage if you’re in the “roommate phase”?

Or is this something hard to fix. I had a serious conversation with my husband about how I’ve been feeling lately. I told him that sometimes I feel like we are more friends than we are lovers, he said he feels the same way…can you still love somebody despite feeling this way? I don’t know I just feel very lost right now and on top of that I’m 24 weeks pregnant with our second. Ugh I just hope this doesn’t mean we are doomed. He said he wants to try to fix things and make them better so I was just wondering if anyones marriage has ever survived this problem?