No, it is not safe. You must consult with your doctor before taking keto diet pills in such medical conditions.