Mixing technology and magic is a popular strategy when successfully integrated into stories. Don't ever feel like you can't but knowing the challenges in world-building, power balance, character development and plot coherence can make or break your balanced story. Understanding the core differences between tech and magic is crucial.
