Assuming you are referring to an electric mini fridge, the answer is yes, it is safe to have a mini fridge in the closet. However, there are a few things to keep in mind. First, make sure the cord is not wrapped around anything and is not kinked or damaged in any way. Second, keep the fridge away from any heat sources (e.g., radiator, heating vent) as this can damage the fridge and/or cause it to overheat. Finally, if possible, try to keep the closet door open while the fridge is in use so that air can circulate properly.