Heparin therapy can be used in patients with a history of stroke, but its use is carefully evaluated by healthcare providers to determine the best treatment approach for each patient's unique situation. Heparin may be chosen for certain cases, while other anticoagulants may be preferred in different scenarios.