Nope, those films had nothing to do with it. If they did, he would have been done after Scott Pilgrim bombed. Instead, in-between art house stuff and movies with friends he’s done quite well.
2007 - Juno - $232 million
2009 - Youth in Revolt ($19.7m on $18m budget)
2010 - Scott Pilgrim (box office bomb)
2013 - Superbad…