Yes, you can absolutely use dried rosemary in place of the fresh one. Or you can use any other herb you prefer, like thyme, sage, or oregano.