Sure thing.  As long as you run or walk the miles during the event dates (after you've signed up), you're good to go.