No, different types of salt cannot generally be substituted 1:1 due to variations in crystal size, density, and sodium content. Using a 1:1 substitution could result in over- or under-salting your food.
The primary reason you can't substitute salts equally is their varying densities and crystal structures. For example, kosher salt typically has larger, irregular crystals compared to table salt, which is finely ground. Sea salt can also vary greatly depending on its source and processing.
If a recipe calls for 1 teaspoon of table salt and you use 1 teaspoon of kosher salt, you'll likely end up with a less salty dish because the larger kosher salt crystals mean fewer crystals fit into that teaspoon. Conversely, if you substitute 1 teaspoon of table salt with 1 teaspoon of a very fine sea salt, you might oversalt the dish because more salt crystals fit into the same volume.
Furthermore, some salts, like iodized table salt, have additives that can affect the flavor of your dish. Others, like Himalayan pink salt, contain trace minerals that contribute to their unique taste. These subtle differences can also impact the final result of your cooking.
When substituting salts, it's best to start with less than the recipe calls for and taste as you go. You can always add more salt, but you can't take it away! For accurate measurements, especially in baking, use weight measurements (grams or ounces) instead of volume measurements (teaspoons or tablespoons).