If a refrigerator is not working, it is highly unlikely that you will be able to freeze food in it. The refrigerator and the freezer compartment are interconnected, and they share the same cooling system. If the refrigerator is not functioning correctly, it means that the cooling system is not working, and that includes the freezer as well.
The refrigerator's cooling system is responsible for removing heat from both the refrigerator and freezer compartments. Without proper cooling, the temperature inside the freezer will rise, and it will not be able to maintain a low enough temperature to freeze food effectively.
If you suspect that your refrigerator is not working, it is essential to address the issue as soon as possible to prevent food spoilage and ensure food safety. Contact a qualified technician or appliance repair service to diagnose and fix the problem with your refrigerator. In the meantime, try to keep the refrigerator door closed as much as possible to maintain the temperature inside and preserve the perishable food items to the best of your ability.