Yes, you most definitely can. If you are following a training plan, train as per that plan. On rest days, or on days where you are advised to cross-train, just run/walk the minimum 2 km distance at a very easy pace. This would be like your recovery day.
Doing 100 Days of Running while training for a marathon is the perfect option to build consistency, train regularly, and have a great run on the race day.