Dry socket is a risk for the first few days after tooth extraction. After the first week, the risk of dry socket decreases significantly. However, it is still important to avoid smoking or vaping for at least a week to ensure proper healing.