Valuation helps determine whether a stock is worth buying based on its earnings potential relative to its price.