Can u combine 3 different code from arduino?

If they are nicely written, then it is fairly straightforward. Here's some guidance on how it is done and a few working examples:

If the programs are not written to cooperate with other programs, you have to fix that issue first.