Depends on the circumstances. If there was a precipitating cause that is no longer present eg trauma, surgery, immobilisation etc then the risk of recurrence is low. If there is an ongoing risk factor such as smoking, advancing age, medication etc then the risk is higher. There are certain inherited causes (thrombophilia) that also push up the risk.
The duration of anticoagulation will depend on the risk of recurrence.