Yes. You can book a flight before your travel authorization is approved.
Your passport details and passenger name should be entered correctly when booking your flight, and your travel authorization must be approved before you travel to the UK.
If you travel without approval, you may face issues during boarding or entry procedures, so it is safer to apply early before your travel date.
If you are preparing to travel to the UK, make sure your UK ETA is approved before departure.