Magic can equal teic chnology however. If a being from an advanced society, I e. a Vulcan traveled back in time to say 100 c.e. on earth, there is no possible way for the people of that era to distinguish Vulcan tech as anything but magic.
Not initially, perhaps. But If a second-century person observed the Vulcan operating that tech--let's use something simple like a ray gun--then that person could copy the behavior. Pick up the gun, press the button. Boom!
The principles of operation would remain opaque, probably never understood, but that person would have a pretty clear notion of what Romans meant by sorcery, and the ray gun doesn't fit that. So it would be a device not understood, but definitely not magical.
In fact, what constitutes magic varies by culture. It doesn't mean "everything I don't understand." In some times and places, it meant only the operation of divine beings. Or that magic is merely illusion. And so on.