People have done that before...it's basically a cheap DIY version of Ed Speer's PeaPod. The issue is finding a sleeping bag large enough to accommodate the hammock inside. Which in turn leads to the same issue (IMO) that the PeaPod has - unnecessary weight. But I've seen the idea work.
"Physics is the only true science. All else is stamp collecting." - J. J. Thompson