Theoretically there are some software packages that are transferrable as long as there are no other installations elsewhere. However, you would probably need to disassociate the previous owner's Apple ID and use your own. I know I would completely sign out before handing over a used computer.
Unless the software came on physical install disks, no, they are not transferable. Anything downloaded (or by subscription) is not your property to give away or sell - you are simply purchasing a license to use it (you are, de facto, "renting" it). And you cannot disassociate the previous owner's Apple ID and use your own - you would be using pirated software. As I said, the license is not transferable. "Signing out" is not enough.
You may find this an interesting read (see sections 2 and 3 in particular):
http://images.apple.com/legal/sla/docs/macOS1012.pdf
(the licensing agreements are pretty much the same for any newer OS version; they differ in some aspects for applications).