It depends on what you call “magic”. If it’s the kind of stuff that is popular now on social media, like TikTok, it’s a rather modern concept with vague roots in XIXth century occultism (when it’s not straight made-up for the video). That kind of magic is really “new”, despite some adepts claiming to have century old practice. But, there is another form of magic, that is probably as old as alchemy or even older. It’s a problem of definition.