You can go all-in before the flop, and it is something you can do when you are short-stacked (they have a low chips count) and don’t have enough money to make any other action. In such a situation, you can go all in and hope to double your money, or you can fold pre-flop and leave the game.