Is there a question in there somewhere?
Although you can combine two different programs (sketches) you can't simply cut-and-paste.
If you're writing the program yourself it should be no problem but if you are copying someone else's programs you'll have to full-understand how they work and you'll essentially have to re-write/re-create the functionality of at least one of the programs yourself.