While fresh thyme provides the best flavor, you can certainly use dried thyme if that's what you have on hand. Just use a smaller amount, as dried herbs are more potent than fresh.