Going all-in pre-flop can work, but it’s not a magic move. If you have a really strong hand like AA or KK or AK or QQ sometimes, it’s usually a safe and effective play. With weaker hands, it’s more of a gamble you’re relying on luck and trying to pressure other players into folding.
It’s also a mental game, a well-timed all in can make your opponents fold hands they’d normally play, giving you control. But if you do it too often, people catch on and call you more. Basically, it’s powerful when used smartly, not just all the time.