No but the principles were the same, even if the precise rules weren’t. Otherwise, what would be the point of using the Old Testament today?
I find the principles of Jesus and the principles of Joshua quite 'different', to put it mildly.