Yes, you just need to enable password page from shopify admin.
1. From your Shopify admin, go to Online Store > Preferences.
2. Scroll to the Password protection area, and check Enable password.
3. In Password, enter the password that you'll give to the customers who you want to be able to access your online store. Don't use the same password that 4. you use to log into your admin.
5. In Message for your visitors, enter the message that you want to show on the password page. If you don't want to show a message, then leave this field blank.