Well, Jimmy Fallon has 2 writers who are obsessed with the show. This was back when he didn't really watch it.
I think it kind of goes both ways. Jimmy Fallon's writers loved the show, but Dan wanted Jimmy Fallon on the show, and he enthusiastically agreed.
That's good. It should make the episode a lot better with him wanting to be on the show.