It will depend on the situation. Patients with high cholesterol prior to becoming pregnant should discontinue treatment if they are taking statins, since their use is not recommended during pregnancy.
However, since cholesterol levels increase during pregnancy, it will be convenient to control their values, either by means of a healthy diet low in saturated fats or, if the specialist considers it appropriate, with the help of a recommended drug.