Check with your HR policies. When I did it I used up my annual leave first so while I left at 22wks I didn't start my maternity leave until I was 34wks. But I'd planned for that and had being saving my annual leave for a couple of years. For me it was the best thing I did. My morning sickness almost disappeared overnight and I felt sooo much better.