You can use a short code at a sidebar text widget like the following screenshot.
But it will not work if you don’t add the line of code in your function.php file.
add_filter('widget_text', 'do_shortcode');
You can see the output now.