Enter Phone Number, Show Contact Details with API?
You can, certainly - but it sounds like what you really want to do is set the Supervised Dedupe rule to dedupe on phone number.  That way, when someone enters a new contact, when they try to save it, it will recognize the person as a duplicate.