I had to. I had no option. I took the bar exam in my first trimester (passed, luckily) and had to finish my thesis in my second trimester along with teaching. I made priorities and did nothing else. I didn’t shop, cook, clean, do laundry - just slept and did my work.
What really helped me, I think, was that I never stopped my exercise routine (morning swimming) and yoga. And I had minor morning sickness.