ADHD and autism are thought to have about a 60-70% genetic overlap. You can have either one separately or both.
Current research suggest that it is more likely that you have AuDHD than standalone autism, though (again, about 60-70% of people on the autism spectrum are estimated to have ADHD as well). I have not yet seen an estimate of the ADHD vs AuDHD population, though, so I'm not sure if the same pattern (more likely to have the combination than just ADHD) applies.
As others have said, there's also some overlap in how the two conditions present and the challenges faced by an individual with either, even though the underlying mechanisms are different.