In no limit poker, you can go all in before the flop whenever you want. This mostly happens when players strongly believe they have the best hands, or when they are the short stack in the game and are trying to double up.