That is how I did it. I was doing my Masters in Computer Engineering and my thesis advisor was consulting to a startup and made the introduction. The startup flamed out, but the experience I gained lead to two jobs with multinationals (in succession) which mostly made up for the lost income.