Yes you can eat rosemary Raw.
Rosemary can be eaten raw or cooked.
Rosemary stems can also be eaten raw but rosemary and rosemary stems are more enjoyable when eaten cooked instead of raw.
When you eat rosemary or rosemary stems raw they have a woody texture to them which makes them unpalatable.
The rosemary and rosemary stems are perfectly safe and edible when raw but it's much better to cook them before eating them.
I have tried raw rosemary before and it's not very good.
I prefer the rosemary to be cooked before eating it.