Yes it is and in fact it is important to have an adequate salt intake. For years we have been advised to restrict our salt intake, Dr Stephen Phinney explains why the opposite is true if you are ketogenic.

https://blog.virtahealth.com/sodium-nutritional-ketosis-keto-flu-adrenal-function/