Does anyone know ....

My doctor wrote me a letter for my employer stating that he wants me to take off of work the remainder of my pregnancy due to my mental health and covid being a huge factor where I work. Does anyone know if I can get unemployment because of this ? I’d hate to go without pay.