You can buy Shinkansen tickets at the station until just before departure, so long as they're available. This can be accomplished at a ticket counter or at special ticket machines. There are pros and cons to both methods. However, it is good to know how to buy tickets from the automated vending machines.