Not sure about non-Honda shocks - and they often have different end connections - but as far as I know for Honda the 350-4, 350 twin, and 400F have the same length shocks. Probably there are others.
The other longer ones for the bigger SOHC-4 bikes will mount just fine but they are longer and the rear will be jacked up a bit. It did change handling on my 400F but I dropped the forks into the top triple a bit to try and compensate, helped a bit.
I think the correct shocks are roughly 12 1/4" long, 750 shocks around 13 1/8. Not a huge difference but chain tension varies with swingarm angle, and unusual length shocks can make it difficult to get good chain tension.