Would doctors put a patient on a ventilator as a precaution, even before he stops breathing?

Yes. This is often done when you have trouble breathing but can still give some breaths. It can help you survive long enough for the healing to occur and then you may be weaned from the ventilator.