@ Prikshit:In real & effective way there is value chain i.e Study-Gaining Knowledge(Effective which can be implemented in value added form not just degrees)-good earning.if any of part of this chain broken somewhere then result will be in vice-a-versa.baki bhai iska sahi messsage to 3 idiot me diya hai "Don't follow Success, go for Excellance' Suceess apne aap aa jayegi.
Baki kuch Insaan aise bhi hai like Owner of Microsoft,Late Steve Job jo School/college ke drop out but created a history in their respective fields.precisely to anwer your question Good learning/Earning both are crucial, want to add one thing in this "Loving what we do"( need not to be necessary in academic, can be in any field) is base to both of good earning/learning.