Yes, you can always purchase ferry tickets at the ticket window until just a few minutes before departure, if tickets are still available.