Networking arduino and raspberry pi 3 via internet

Hello friends,

I'm planning system that includes Arduino Mega R3 (plus Ethernet shield V2) and Raspberry Pi 3 for communication via internet.

My question is whether it is possible to communicate between them when the Raspberry Pi serves as Sarver, and Arduino as customer?

I didn't find information about the issue, even though i searched the internet for days.

Thanks in advance.
love you all!