Most compounds can be broadly classified into 2 groups.
Polar and Non-polar
In solution chemistry we have a rule “like dissolves like”, which simply means that a polar compound(like NaCl) is soluble in a polar solvent(like water) and a non polar compound(like AgCl) is soluble in a non polar solvent(like CCl4). Apolar compound however doesn’t dissolve in a non polar solvent and a non polar compound doesn’t dissolve in a polar solvent.
There are special cases where this doesn’t apply but in this case and most cases out there it does and will.