Question about after maternity leave

So I found a work from home job while on maternity leave, do I need to stay at home depot for a certain amount of time after returning before I can put my 2 weeks in?