Yes, you can book the gondola ride on the spot, but it is better to book online to avoid long queues and ensure you get a ticket.