Yes. There is this phenomenon called convergent evolution wherein unrelated or distantly related organisms develop similar traits although their ancestors are unrelated. Prokaryotic organisms can also absorb DNA from the surroundings and express these genes. If these genes are also expressed by other organisms then there will be similar traits.