A virtual machine is just like an ordinary physical machine in most ways. If it's not running, nothing is happening.
Therefore, if you power the virtual machine off (regardless of the state of the VirtualBox application or the host operating system), it will not perform _any_ operation such as indexing files or doing anything else.