Yes, buying CDKeys is legal in most cases. CDKeys operates as a legitimate digital game key reseller, acquiring keys from authorized sources such as publishers, distributors, and developers. These keys are then resold to customers for personal use, making the practice legal. However, customers should exercise caution when purchasing from other unauthorized sellers to avoid potential legal or security issues.