How to convert mg/L to mg/kg ?

Are these formulas correct for the conversion?
1. metal (mg/kg) = [conc of metals (mg/L) X volume of sample (mL)] / [sample weight (kg) x 1000]
2. metal (mg/kg) = mg/L * final volume (ml) / initial sample weight (g)