This is something to discuss with whomever you rent from
I would assume yes, you would pay in order to be able to use it once you are back from maternity leave.
Possibly you could sublet it?
I look at it the same way as paying rent and going on a vacation, the landlord won’t give you a break for it!
you probably need to but you may be able to get a break from the person you are renting space from. When yo have your own business, concepts like vacation, sick days and maternity leave do not apply the way they do in an employment situation.
I would talk with the owner, though.