Magic is a common feature in fantasy stories. Per author Chrome Oxide, there is a right way and a wrong way to present magic in a story. If you are giving your characters magical powers, it has to be logical and believable within the context of the story. You risk confusing or losing your readers if they can't follow your reasoning. There must also be a limit to what the magic can do so that the main conflict can't be easily solved.