Let's take the example of a page at the end of an app signup process.
This page will allow the user to finish the process, so I will place a button labeled "Complete Your Registration" and in the same time it will allow the user to invite friends (by filling email inputs) to join this app.
So the idea to change the label to "Invite Friends and Complete Your Registration" when the user enter at least an email address in the form.
Is it ok to change the label depending of the user's choices?