It has been a rough few weeks for Megaport Ltd ( ASX: MP1 ) shares and its shareholders.

After reaching a 52-week high of $23.20 in early October, the technology company's shares are trading around $13.35 on Thursday.

That represents a decline of approximately 42% in less than two months.

Has this sell-off created a buying opportunity, or are investors right to be heading for the exits?

Why are Megaport shares falling?

Megaport appears to have been caught up in a broader technology sell-off as investors reassess growth stock valuations and question the returns to be generated from the enormous sums being invested in artificial intelligence (AI) infrastructure.

Closer to home, the company's annual general meeting last week saw approximately 58% of shareholders vote against its remuneration report , resulting in a first strike.

However, having followed Megaport's progress closely this year, I think there is a lot to like about what is happening within the business.

The acquisition of Latitude.sh has opened up a much larger addressable market for the company, allowing it to offer computing power and storage alongside its established global network services.

And customers are already showing a strong appetite for this broader offering.

Since April, Megaport has announced strategic contracts with a combined value of approximately $2.3 billion.

Positively, some of the infrastructure required to service these contracts has been deployed ahead of schedule, allowing Megaport to start generating revenue earlier than anticipated.

Its existing network business is also performing well, with annual recurring revenue (ARR) growing 29% in constant currency terms in the 12 months to August.

I think this side of the business deserves more attention given how much of the conversation now revolves around AI.

Would I buy the dip?

What makes the recent sell-off so interesting to me is that investors can now buy into a business that is expecting to more than double its revenue this financial year at a fraction of the valuation it commanded in early October.

Management is forecasting FY27 revenue of $720 million to $810 million, up from $312.2 million in FY26.

It also expects its EBITDA margin to increase from approximately 25% to between 42% and 44%.

However, I would be careful about getting carried away with these figures. Megaport's expansion into computing services has made it a much more capital-intensive business, with planned capital expenditure of up to $1.88 billion this financial year.

While management has confirmed that its existing investment program is fully funded, I will be watching closely to see how efficiently Megaport turns these investments into sustainable cash flows .

There is also the risk that computing hardware becomes outdated faster than anticipated, requiring further investment to remain competitive.

Nevertheless, given the customer commitments already secured and the opportunities to sell additional services across its global network, I think Megaport has the potential to grow into a considerably larger business over the next five years.

And I would be willing to back it at today's valuation.

I would buy the dip in Megaport shares, but I would be conscious of how much exposure I have to the company within my portfolio.

There will be a lot for management to deliver over the next couple of years, and I expect the shares to remain volatile along the way.

But for investors who share my optimism about the long-term demand for AI infrastructure and cloud connectivity, I think the recent sell-off could prove to be a great opportunity to invest in Megaport.

Wondering where to invest $1,000 right now?

When investing expert Scott Phillips has a stock tip, it can pay to listen. After all, the flagship Motley Fool Share Advisor newsletter he has run for over ten years has provided thousands of paying members with stock picks that have doubled, tripled or even more.*

Scott just revealed what he believes could be the 'five best ASX stocks' for investors to buy right now. We believe these stocks are trading at attractive prices and Scott thinks they could be great buys right now…

* Returns as of 6 March 2025

Megaport shares are falling 7% today – but I'd still rate them a buy

Nvidia rockets 30%: These beaten down ASX AI shares could be buys too

The top 9 ASX share picks from UBS: CSL and who else?

5 things to watch on the ASX 200 on Tuesday

3 ASX shares I'd buy if the technology sell-off gets worse

Motley Fool contributor Grace Alvino has no position in any of the stocks mentioned. The Motley Fool Australia’s parent company Motley Fool Holdings Inc. has no position in any of the stocks mentioned. The Motley Fool Australia has no position in any of the stocks mentioned. The Motley Fool has a disclosure policy . This article contains general investment advice only (under AFSL 400691). Authorised by Scott Phillips.