Yes. If you bought the same stock on different dates, a partial sale is always matched against your earliest purchase first.