I have a 4 functions that work together

Function 1 will prompt the user for a yes\no answer and if yes will run the
function and then move to function2 and if no will move straight to function
2 and so on, the problem is function 4, if I answer no it returns to function
3 and runs from where it was called from.

Is there anyway I can have the code just stop if the user says no in
function 4

thanks