If the storyline is bad after 5 episodes, then it doesn't matter how good it gets afterwards, as most people aren't masochists, and won't want to watch the next X episodes.
It doesn't matter if you watch the entire thing or not. The storyline should be gripping, if not initially, then soon after, because otherwise people will just not watch.