Yes, you can substitute fresh rosemary and thyme for the dried herbs. Just make sure to finely chop them before adding them to the dish.