Whereas if you scan a picture from an out of copyright book, you then own the copyright on your scan.
Yes, I think that would be true with the "sample" as well, if the piece you are sampling is out of copyright itself. So you're okay with that Fats Waller sample kids.