Vitamin D usually comes from exposure to the sun, but it can also be found in some foods and supplements.
"We would not recommend more sun exposure, because of the increased risk of skin cancer in countries like Australia," Prof McGrath said.
"Instead, it's feasible that a safe, inexpensive, and publicly accessible vitamin D supplement in at-risk groups may reduce the prevalence of this risk factor."
Autism is used to describe lifelong developmental disabilities that greatly hamper a person's ability to communicate with others, interact socially or fully comprehend the world.
The study was greeted with caution by autism other experts.
Professor Andrew Whitehouse from the Telethon Kids Institute said the study offered interesting possibilities, but needed to be put into perspective.
"Autism is linked to dozens if not hundreds of different mechanisms which lead to this condition," he said.
"This study gives us an inkling of one of these possible mechanisms but I think before we think about anything else, and that includes treatment studies, we need to see this finding replicated.
"We know that genetic factors play a major role in the developmental pathways that may lead to autism."