Generally yes—selling loss lots first generates zero tax and creates a capital loss bank you can use to offset gains from other lots. The accepted order is short-term losses first, then long-term losses. Beyond that, the right order often depends on after-tax net proceeds per share, not just tax category.