You can play World of Warcraft for free, but only through the free trial, which gives you a taste of the game without any commitment.
To play indefinitely, though, you'll need to purchase the full game and maintain a subscription. The base game is relatively affordable, and the ongoing subscription typically runs in the range of a modest monthly fee. So the trial is free, but the full experience requires paying.