If tracking isn’t an issue you would still prefer to be inside optimal… as it would provide the most damage possible… it is just rare/impractical in practice with most projectile weapons. Particularly noticeable once you get a feel for the math.
But yes, autocannons are essentially falloff weapons, unlike most other weapons in EvE.