Washing clothes in hot or warm water helps to remove dirt and grime much better than cold water so if you can it's best to wash the clothes in hot/warm water instead of cold water.
That is especially true should you or your family have the flu or cold virus washing the clothes in hot/warm water and adding some apple cider vinegar to the washing machine will help to kill germs and bacteria from the clothing.
However if you have clothes that have dark or bright colors that bleed or delicate fabrics, use cold water instead as the hot water can cause damage to the clothing.
But other clothing can use hot or cold water but even cold water is okay to wash any clothes in and most people do just wash clothes using cold water to save money on heating the water.