Former House Majority Leader Eric Cantor said Monday the stunning resignation by House Speaker John Boehner could help avert a potential government shutdown.

"With John Boehner doing what he did, it creates the opportunity for the Republican members to come together—and a lot of them are calling for sort of a family meeting—and really discuss what is actually doable in a divided government," Cantor told CNBC's "Squawk Box."