Yes, but the A16 was a stopgap release, which only happened because Apple has to release a new iPhone CPU every year. The M-series does not update as frequently, and so it seems reasonable to imagine that the M3 is of the same "generation" as the A17.