Yes they can.
Or they can be normal settlers that are replaced by synth at a certain point.
One possible way to "detect" a synth in your settlement is the exploit of the Awareness perk: synths tend to have slightly higher damage resistance than human beings and this can be spotted in VATS if you have the Awareness perk.