If you get a CS degree from a top school just because you see what salaries are, not because that’s what you’re interested in, your career will be mediocre at best.
School shouldn’t be looked at as mandatory and burdensome, it should be a tool that helps you achieve a level of understanding about something that you’re head over heels excited about.
Passion for something will organically lead to a successful career doing what you love.