While it is generally safe to take both forms of magnesium together, it's best to consult with your healthcare provider to determine the appropriate dosage and combination for your needs.