No, although fennel and rosemary are both spices, they are different spices, and their effects are also different.
Differences:
①Different families and genus: Fennel belongs to the Apiaceae family, while rosemary is a rosemary shrub of the Lamiaceae family.
②The shapes are different: fennel is more oval-shaped, while rosemary is more flat and elongated. See the picture for details:
Cumin, picture source network
Rosemary, picture source network
③Different applications: Cumin is generally used as a spice in Chinese food It is used in food; rosemary is mostly used in Western food, and rosemary can also be used as an antioxidant in food, beverages, medical care, beauty and other industries.