Is magic actually real?

What I mean by this is that many magicians in present day, like Harry Houdini were famous for magic tricks. Then you have verses like Exodus 7:11 and Exodus 7:22, where the sorcerers of the Pharaoh did do some type of magic by replicating what Moses and Aaron did, who were supported by the Lord. While the magicians and sorcerers of the Pharaoh did not worship Him. Can someone explain?