Shortcodes allow you to add dynamic items like contact form, tables, and others inside your WordPress content area.
You can also use shortcodes in your widgets to add these dynamic items in your sidebars and other widget-ready areas.
Shortcodes allow you to do add additional features in your WordPress post content and other areas of your website.
We will show you how to use shortcodes in your WordPress sidebar widgets.

First, you need to visit the Appearance » Widgets screen in your dashboard. Once there, you should click the + icon at the top of the screen to add a new widget.
Next, you should scroll down to the Shortcode widget and drag it onto the WordPress sidebar.

After adding the widget, you can simply add your shortcode inside the text edit area of the widget.
Don’t forget to click on the Update button to store your widget settings.
You can now visit your website and see the shortcode in action.