PayPal checkout settings question

After PayPal payment is completed, customer will be redirected to Store Closed.
to solve this
I found Auto return for website payments in PayPal’s account settings.
I selected the Return url setting to yes and added this https://mydomain.com/index.php?dispatch=checkout.complete
Can I do it like this?