Can I use a VFD as a voltage converter?

In one word, no. A VFD cannot be used as a replacement for a voltage transformer. If a motor requires 400Vac, then a 400Vac source is required as an input to the 400Vac VFD. The same goes for other voltage classes, The only exception to this rule is with phase number....