Depends on the size of the container, if large enough it can raise the temp in your fridge, making the other food unsafe to eat. But you should always let the food cool off first, for instance, putting sauce in the fridge while it’s still hot can unintentionally give it a sour or bitter taste