Not really. For this, it's much easier to use an extension that's built for that purpose. Here are two we found in the Chrome Web Store: Block site and StayFocusd. If you use a different browser, a quick search for "block site" in your add-ons or extensions gallery should turn up equivalents for your browser.