Antidepressants while pregnant?

Will a doctor prescribe antidepressants while pregnant? I’m so unhappy and im resenting my baby at this point. I never leave the house, I have no friends as I’m in a new city, I leave the house maybe 2 times a week and that’s to run errands. I am to the point where I can barley function I am just so unhappy on a level I’ve never even felt before. I am so down and depressed and just really struggling. Has anyone ever been prescribed antidepressants while pregnant?