Nope, just because an inverter can supply up to 400Hz doesn't mean to say it can run a motor at this speed. Final speed of a motor depends on the motor design which is also based around age. The big old British motors don't like to go above about 90 Hz before they get saturated and cause the machine to actually drop speed, the more you go above this slows them down more, makes them run hot and sound like they have lost a phase.
Not wanting to piss on Alan's parade but there are a lot of motors out there on early Colchester's and Harrisons's that are only 440v and can't be swapped to 240v three phase which is needed for an inverter. This is because the star point is buried inside the winding, it can be dig out and 3 extra wires brought out, sometimes it needs doing by a rewinder if the build up is complex.
All is not lost though as modern metric framed dual wound motors are not expensive if bought correctly.
John S.