no and yes
autists have often a much much stronger need for habits and avoidance of change. This includes a change of, or a less repeting/habitual diet. The effect if applified due to autism being commonly comorbid with ADHD and hyper fixation on specific foods being a very common thing (not (mainly) caused by gut bacteria as the effect is too strong and too specific to be "just" a preference caused by gut bacteria)
but this can lead to a imbalance of gut bacteria and that can have an reinforcing effect on wanting a even more monotonous diet, but in the end this is AFIK "just" a secondary reinforcing reason not the root cause