Yes. Two people who know that they are not infected and who have sex only with each other cannot contract syphilis. If you have sexual relations with someone and do not know if he or she has syphilis, a good defense against becoming infected is to use a latex condom during anal or vaginal intercourse. However, condoms do not provide complete protection because syphilis sores or lesions can sometimes be on areas not covered by a condom.
Syphilis can be cured—and will not lead to serious damage to the organs—if it is caught and treated during its earliest stages. If you notice any unusual sores in or around your genitals, or think you may have had sexual relations with someone who has syphilis, you should discuss the possibility of testing with your healthcare provider. In fact, if you are sexually active with multiple partners, you should consider getting tested regularly—it's a simple blood test.
Finally, it's important to know that even if you treat & cure a syphilis infection, you can still become reinfected in the future.