No! Very bad practice!
Many international formats. Different formats.
Let the user input what number he has and deduce from all available information what he means.
Use location, maybe send a message to check if the number is correct.
Only force formatting on a user if you are certain he uses it himself.