The success of investing can often come down to timing. Jim Cramer warned investors that if they think short term, they can sometimes avoid pain, but it is more likely that they will miss out on opportunity.
Sometimes, a little short-term pain can put an investor into a position to rack up long-term gains.
"Stocks don't always get it right short term, and if you play the short-term game I think that you might not get it right, either," the "Mad Money" host said.
Cramer illustrated his point by reviewing Facebook, which has been under pressure after a Deutsche Bank research note said that it could disappoint when it reports earnings at the end of April.
Despite a strong history of delivering better than expected results, Cramer noted that after the last eight quarters, Facebook's stock has closed down 50 percent of the time. In a week following its earnings report, shares traded lower 63 percent of the time.
With that pattern, many could find it tempting to sell Facebook.
The reason why Cramer believes in Facebook for the long term is because it has appreciated an average of 9 percent from one quarter to the next. Thus, the quick sell-off in the stock after reporting has proven to be a time to buy.
"The initial skepticism provides a rare buying opportunity, not a selling opportunity. Yes, renting and flipping Facebook has proven to be a sucker's game versus just flat out owning it," Cramer said.
Read MoreCramer: The secret to trading Facebook