Indeed it is true - if you look at any map, you will see that Egypt had a natural wall in the form of the desert through which no army wanted to pass due to the sheer issues of logistics it would take if one would decide to go through. Such a journey would massively undermine their desire to take Egypt.