Because of The Hunchback Of Notre Dame does the cathedral of Notre Dame have something to do with magic?

No. The Hunchback of Notre Dame is a work of fiction. While the Notre Dame cathedral is real, the events and people of the story are not. As such, the story does not indicate anything real about the nature of Notre Dame.