Yes, it can be. Buying gold from third-party sellers breaks World of Warcraft's terms of service, and Blizzard treats it seriously. Accounts caught doing it have been suspended or permanently closed, often along with the characters and gear attached to them.
The risk is not limited to the account either. Gold-selling sites frequently ask for login details, and a fair number of them turn out to be phishing operations or a route to a compromised machine. Payment details handed over to an unlicensed reseller are just as exposed.
Plenty of advertisements promise instant delivery and friendly support, but no discount makes up for losing years of progress. If gold is the bottleneck, the sanctioned options are earning it in game, using the token system where available, or simply playing the auction house.