That's the idea behind lambda school. Interesting podcast interview from Indie Hackers[1]. They only collect if your salary is above $55k if I recall correctly and there is a max amount that they take in total.
[1] https://www.indiehackers.com/podcast/046-austen-allred-of-la...