I am traveling to Santa Barbara, CA. I have flights booked to Los Angeles scheduled to land at 10:05 pm; then I plan to rent a car and drive the remaining 2 hours or so to SB.
However, there is a flight from LAX to SBA that departs at 10:35 pm. If it so happened that my LA flight got in early, and the gates were near each other, would it be possible to book a seat on that flight right at the gate, half an hour before departure, and save myself the drive?