Is Anise a substitute of cumin
I'd say no. These are two very different tastes: anise is freshy with a distinctive aroma than resembles licorice whereas cumin is on the earthy side of the palette.

For substituting cumin I'd go with ground coriander seeds. You'll of course need to adjust quantities