Z-bar help

I am going with a 340 vs 318 engine measurements should be the same?