Only if you try to day trade , speculate or just buy upon on a hot stock tip. Some will buy securities just because they see the prices going up a lot. Everyone needs to act in responsible ways. There is no specific scripture concerning gambling but plenty of warnings about seeking quick riches and being reckless , which would certainly describe some persons stock buying patterns. A faithful man will abound with blessings, but he who hastens to be rich will not go unpunished.
Many people say the stock market is too unstable and therefore is similar to gambling.
Owning stocks takes patience and fortitude . If you don't have that character trait, the stock market can help you or break you. Think on the parable of the money given to three persons with the responsibility to invest it. For the kingdom of heaven is like a man traveling to a far country, who called his own servants and delivered his goods to them. Then he who had received the five talents went and traded with them, and made another five talents.