Marijuana's illegal federally in the U.S., and that's a big problem. It makes it difficult for companies to gain access to the banking system, and pot can't travel across state lines, even if it's between two states that have legalized marijuana. There's no denying legalizing pot could lead to significant opportunities in the industry, but it won't be a band-aid solution for all of its problems, and here's why.

A lack of legalization hasn't prevented companies from posting profits

One of the biggest knocks on cannabis companies is that they're just not profitable. But that has much more to do with a company's management than with whether it can sell across the country. There are marijuana companies in both Canada and the U.S. that have posted profits in the past year.

The reason companies aren't posting profits is because they're simply being too aggressive. Much of the excitement in the industry has centered around growth, and companies have responded by expanding into many different markets. Acreage Holdings (OTC:ACRGF) is among the largest multistate operators in the country, with a presence in 20 states (which includes pending acquisitions). The company's been aggressive in its expansion, and in 2019 its revenue of $74 million was more than triple the $21 million that it generated in the previous year. And although its net loss for the year of $150 million was an improvement from $206 million the year before, the company is still nowhere near breaking even -- despite all that revenue growth.

Cannabis greenhouse.

Image source: Getty Images.

Curaleaf Holdings (OTC:CURLF) is another large cannabis operator, with operations in 17 U.S. states. In 2019, its sales reached $221 million, about three times the previous year's $77 million. But despite all its sales growth, the company's finished deeper in the red. Its loss of $67 million in 2019 was 19% higher than the $56 million loss Curaleaf incurred in the previous year.

In contrast, Trulieve Cannabis (OTC:TCNNF) -- which focuses heavily on a lucrative Florida market -- has had no trouble posting a profit. The company's financials have been in the black in each of the past six quarters. And prior to ramping up its growth and expansion, Charlotte's Web (OTC:CWBHF) was consistently profitable as well, never failing to break even in any of its eight previous quarters.

Other industries are still likely to remain on the fence

Another problem is that other industries are still hesitant to get involved with marijuana, and this attitude can keep pot stocks from growing and becoming more stable investments. Companies from other industries have dipped their toes in, with the most notable being Constellation Brands's (NYSE:STZ) $4 billion investment in Canopy Growth (NYSE:CGC), but bigger fish have stayed away That isn't necessarily because pot is illegal -- it's more that it may be bad for the brand.

When Starbucks (NASDAQ:SBUX) said it wasn't interested in cannabis in 2018, it wasn't because of the illegality of pot in the United States. CEO Kevin Johnson told BNN Bloomberg that he believed cannabis didn't add to the company's value and that it wasn't what the Starbucks brand stood for. Warren Buffett and Charlie Munger suggested the same thing when discussing Coca-Cola (NYSE:KO) possibly getting involved with the industry -- cannabis just wouldn't be a fit for the company's image.

However, attitudes on cannabis are changing. Data from the Pew Research Center showed that in 2019, 67% of Americans were in favor of legalizing pot. That's up from 52% five years earlier.  But the percentage that would actually compel companies like Starbucks or Coca-Cola to get into the cannabis industry is a big question mark. Even one-third of the population is still a significant number of people who aren't on board with legalization just yet. It may be well after legalization before many businesses warm up to the idea of getting involved with marijuana.

What does this mean for investors?

It's important to consider long-term growth when investing in stocks, but that doesn't mean that what happens in the short term is irrelevant. Legalization of marijuana may not happen in the U.S. for several years. And many cannabis companies won't be around long enough to see that day come. It's important for investors to balance out both the short and the long term. After all, a company's long-term prospects will be irrelevant if it can't survive the next year.

Legalization will help open up more opportunities for pot stocks, but companies will still need to be in good positions to take advantage of those opportunities in the first place. That's why investing in a good, well-managed pot stock could be key to having not just a solid investment for the near future, but one that can also capitalize on the growth opportunities that may exist years from now.