Yes, you have chances of contracting it, upon touching the syphilitic chancre (sore) but not by touching the person. If you suspect syphilis infection, medical testing is warranted. See an
STD specialist. It's easy to treat syphilis in its early stages.