Not necessarily. It’s been discovered that campaigns against troublesome foreigners in the Nile delta area, which is where the Hebrews were, were recorded the same as those against foreigners outside of (what we think of as) Egypt’s borders. Some have argued that this indicates that Mereneptah was the “king who did not know Joseph”.