Communication between 2 Arduinos over Ethernet

I want to have two arduino devices (a mega and uno) communicate with each other over ethernet sending UDP packets. I would purchase two ethernet shields, one for each arduino. I would like to know if this would be possible. Thanks.

Yes. Use different mac and IP addresses on each device.