Gambling can be also called an instinct investment.
Gambling is not an investment. It is a mode of trying your luck aka chance based game.
To answer your question 'Does the discipline help in gambling?', yes discipline really helps in gambling but people don't really rely on discipline, but rely on instincts.
Instincts are based on discipline. One who has controlled their emotions have essentially controlled their instincts. These are people who are now in control will be able to decide whether to stop gambling or play more, manage their bankroll more efficiently and correct excess losses. These are important things which often lead to a gamblers downfall but preventable. Rage betting is a wrong step and the first step to going broke. It needs to be stopped.