As long as the purchase is not from an "opaque" channel (like Priceline's name-your-own-price), you should earn miles. I don't know if Skyauction qualifies or not, but there's no problem with Travelocity, Orbitz, or Priceline's "real" booking engine.