The sole purpose of the virtual machine is to isolate the environment of host machine & the virtual machine. But yes you can access the services running in the VM from the host machine.
You have to “port forwarding” in your VM to access those services in your host machine.