Yes, Indian soldiers in North Africa were defending India, and Canada, and the UK, and South Africa, and every other Allied nation. All the soldiers who fought the Axis, regardless of how far from home they fought, were defending the whole alliance including their own home.