"Fame" usually refers to the imperial examination, that is, selecting talents through examinations. "Being in school" and "getting ahead after learning" are two different concepts. "Success" means to succeed halfway, and "Excellence" means to succeed later.
So this sentence means that you may succeed in the middle and late period of the imperial examination, but the specific time depends on your performance and luck.