Can I turn off the automatic refresh of the preview?

Yes, you can switch between auto-compile and manual-compile modes - simply click the option in the top right corner of the preview:

auto preview pause screenshot

The preview is now in manual-compile mode, and will stay paused until you choose to refresh it manually, or you turn the auto-preview back on:

auto preview refresh screenshot