You bet, but there's a little trick to it. Fresh herbs are less potent than dried ones, so you'll need to use more. A good ratio is three parts fresh to one part dried. So, if a recipe calls for a teaspoon of dried basil, go ahead and use a tablespoon of fresh. Just add them towards the end of cooking to preserve their flavor.