It's highly unlikely. Egypt was too outclassed in technology, and organizational skills to rise that quickly, as a modern state. Their culture was too backward looking to the glories of the Kalifate, to press forward towards the educational, and cultural changes necessary to compete with the European Powers. Geography placed them in the crosshairs of the European Global expansion of the 19th Century. Digging the Suez Cannel, and the scramble for Africa made Egypt too tempting a target to be left alone. Japan had the advantage of being on the far side of the world, which brought them time to modernize. Japanese Culture, being more adaptable, and submissive to a central authority was quicker to reach modernity then 19th Century Egypt.