Yes, you just need to use the "homeurl" parameter when you enter filemaker webdirect, then when you exit the webdirect file, the user will automatically be redirected to the parameter specified in homeurl.
I blogged about this here:
The syntax for FMS16 is:
The above will launch into your FMServer_Sample webdirect solution; and on exit will go to othersite.com
Checkout the "accessing a webdirect solution" section in the WebDirect guide as well:
The documentation there may be useful as well.