I wouldn’t. It’s best, if you’re not eating fresh, to dry it in a bunch that you can hang from a string or hook, or simply on a dry paper towel. Or, for OK dried rosemary, use the microwave.
Dried herbs should have no member of the brown color family in them. The only edible brown food I can think of is Japanese seaweed.
When you buy fresh herbs, put their feet in a little jar with water and refrigerate. That will buy you several more days.
The best is to keep a pot of fresh rosemary. Put it outside for the summer and winter on a sunny window before last frost until no chance of frost in spring. They become big and beautiful plants.