Migration of kubernetes objects to newer version

Is it possible to migrate from kubernetes version 1.12 to 1.22 without migrating first to a version which supports both extensions/v1beta1 and networking.k8s.io/v1beta1?