No, not a bluegrass song. As far as I know, it's a hobo song. I think I heard a recording of Haywire McClintock(?) singing it back in the 30s. Actually, come to think of it, I now remember a kids' record with a version about lollipops and such.
Teresa