It's definitely not needed for the story. If you plan on doing the battle tower or whatever, however, it might be worth it.
I normally just do story and go out and catch awesome pokemon. I dont even have wifi, so i can't connect online (even though I do think my internet is a wifi hotspot or something so i might be able to. no fucking idea)