Sprout Forms - Redirect to same page with query string
Sure, in the control panel for sprout forms you can set the redirect page. Say the url for your contact page is /contact you can do something like redirect to:

contact?message=thank-you


and then in your contact template do something like:

{# Check if we should display a thank you message #}
{% if craft.request.getParam('message') == 'thank-you' %}
 //do stuff here
{% endif %}


Sprout installs a bunch of sample forms, there's plenty to gleam and learn from these.