Upgrading 3.6 to 4.4, is it necessary to export/importa data if I keep the data dir same?

I am upgrading MongoDB-Community edition to 4.4 from my current version 3.6. I want to use the existing data which has some indexes and unique constraints. Is it necessary to export the data(I plan to use datadump for that) and then import?