Yes, you can plant ginger and turmeric together. Both have underground roots that share the same requirements making them compatible companions. They both should be grown in nutrient-rich soil with good drainage.  But, if your soil is not right, you risk spoiling both your ginger and turmeric. Perform a soil test before planting heavy feeders such as edible root plants.