Yeah. So if you wanted to start firefox with the nvidia card (i really don't suggest doing that, just an example) you would do prime-run firefox.
If you have mesa-utils installed you can verify it works correctly by running prime-run glxinfo | grep vendor