The short answer
No. Aphantasia is a difference in how a person forms mental images. Autism is a developmental condition that affects social communication, sensory processing, and patterns of behavior and interest. The two are separate, and having one does not mean you have the other.
Why people ask
Some people with aphantasia notice traits they associate with autism, such as sensory sensitivity, a preference for routine, or a strong pull toward facts and logic. Some autistic people also report aphantasia. Because of this overlap, some researchers have looked at whether the two tend to occur together, which is probably why the question comes up so often.
What the research shows
Some studies, many based on questionnaires, have found more autistic traits among people with aphantasia than among those without. Other studies have found little or no difference. The results are mixed, sample sizes are often small, and a pattern across a group does not tell you anything certain about one person. Traits sit on a spectrum, and an autism diagnosis needs a full clinical assessment.
How each is assessed
Autism is diagnosed by a clinician using developmental history and observation of behavior. Aphantasia is usually identified through questionnaires and simple tasks that ask you to picture something. Neither can stand in for the other, and a picturing test does not measure autism.
When to talk to someone
If you are wondering whether you are autistic, a psychologist or an autism specialist can assess you. Aphantasia itself is usually considered a difference in experience rather than an illness, so most people with it do not need treatment for it.
Bottom line
Aphantasia is not a type of autism. The two can overlap in some people, but that overlap is a research question, not a rule.