Plenty of people say they grind spices in a coffee grinder without issue. A coffee site writer even says they grind parmesan - wild. If you do, you might consider putting some rice through the grinder afterward, to pull out some of the oils and residue.
That said, I wouldn’t recommend it with any reasonably expensive grinder - like the one you named. It feels like using a race car to tow a trailer - it may work, but it’s just not the tool for the job. And from a quality stance, the best grind size for the cardamom is likely different from the coffee.
The right tool is a molcajete or a mortar and pestle. They’re fast, affordable, easy to clean, don’t risk cross contamination, and allow easy experimenting with grind size.
(Edit: Will update with sources when able)