Yes, you'll need an internet connection to link two Xbox 360 consoles together for online play.
Once both consoles are connected, you simply add your friend and get into a game together. The connection is what allows the two systems to find each other and play, so being online is a must for this.