I agree with Winni, as long as you aren't SELLING Public Domain code alone it should be fine.
Even if you ARE selling it alone it's fine -- there's a ton of places that make money selling disks filled with random public domain software. (More so before the internet became popular, but they are still around)