You could replace it with a comma, but the meaning would change.
When you say, "Please confirm the order by signing the document," it would be understood by a native speaker to mean that he has the option of confirming it or not confirming it. (The choice is implied.)
That is, the confirmation is the final step in the process - the decision to seal the d