Ionic v3 Cordova to Capacitor Migration

Hi,
Is it possible to migrate directly from Ionic v3 Cordova to Ionic v3 Capacitor 3?
I migrated my existing Ionic v3 app from Cordova to Capacitor 3 as mentioned in the Docs but I was facing some new errors while running the application in Android.
Currently, we are using Angular 5 along with the Ionic v3 application which seems to require Typescript < 2.8 version but under the Capacitor 3 docs it’s mentioned that Typescript version 3.8 or more is required.
We are also planning to migrate from Ionic v3 to v5. Please suggest whether we should upgrade to Ionic v4 or v5 before migrating from Cordova to Capacitor.

Thanks in advance