If you want to track both at the same time, and assuming you will set one of them as a secondary.
Then if you are using the Google Channel app, you can enable it all within that app. If you are not, you can still install the app, and only enable GA4.