Yes, for heavy clay soils, it is advisable to plant garlic slightly shallower, whereas for sandy soils, a slightly deeper planting depth may be beneficial. However, it is recommended to stay within the general range of 2 inches (5 cm).