Merging Two Codes?

So wait can this do more than 2 functions if you write a program c? :

void setup() {
// all the setup stuff for programA
// all the setup stuff for programB
}

void loop() {
myFunctionA();
myFunctionB();
}

void myFuntionA() {
// the meat of the programA
}

void myFuntionB() {
// the meat of the programB
}