If your personal details (such as name, date of birth, etc.) will remain the same, then you can provide your new passport at the checkin desk without issue. The API (Advanced Passenger Information) that includes among other things your passport information can be updated as long as the flight has not departed.