Yes you can do that. Once I complete the work and deliver it to you, you pay me. Then you are the owner of that content. It is up to you whether you want use it or sell it.