Yes! This can be done using the Javascript Command menu item type.
To begin create a new menu or edit an existing menu.
Select Add New

Choose the Javascript Command type and paste the following into the Javascript Command field ptiSearch();
When this option is selected from the menu, the search box will open as shown below.

Helpful links
Other articles in the ‘Menus’ series
Want to see more?