"The magicians is to Harry Potter as a shot of Irish whiskey is to a glass of weak tea" George RR Martin said, according to the back of the book.
No. The Magicians is like a wine-fueled hangover, complete with regrets and misery and sex and awkwardness, plus REAL MAGIC, which isn't really much fun. It's painful and exhausting and powerful and very difficult. In comparison Harry Potter feels like a silly colorful children's book.
The fact that the characters (well, Josh) keeps making sarcastic jokes about Harry Potter is a sweet detail in this amazing web of people growing into bitterness and acceptance and adulthood.
On top of everything the language is absolutely beautiful.
You should read it.