Hello Ravi Kumar Shanker
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
I checked with internal team on this ask, traffic to M365 services is considered internet egress.
Hope that clarifies your query.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.