If it where that easy. I migrated something like a few dozen pages and I have seen a wild mixture of pages starting with all kind of heading levels (mostly H1-H3).
And mediawiki is very robust against this, so users just don’t care.
The best approach would be a kind of “dynamic promotion” approach per page, meaning that the highest level of heading in MW gets promoted to level one, second highest to level two and so forth.