Autism is complex with more than one cause. Some of it is genetic, but it might be caused by neglect, in some cases, like what you see in babies and toddlers with a low staff/patient ratio in poorly funded orphanages. It is true that infants and toddlers appear to be developmentally delayed in these institutions, exhibiting signs of autism, so how can it be entirely genetic?
That isn't saying that genetics cannot be ruled out entirely. It's best to keep an open mind about possible causes.