Many countries offer e-visas or online applications. It depends on the destination.