If I decide to level up another class past my current level, will the main story line quests apply to my new class?

Basically are the main story line quests character based and you can complete them as any class you happen to level to?

Thanks!