Totally worth it. You're expanding your knowledge.
And if you study something you enjoy, you go on to a job you enjoy.
And even if you don't get the job you want you know a great deal more than before.