It could be bipolar, it could be something else. I would get a second opinion, and I would also recommend seeing a therapist if you can. You can talk to the therapist and see if s/he agrees with the diagnosis, and even if they don't, it will help with the depression.
I wish you well, and good luck with the pregnancy!