Salaam

Is it jaiz to have a medical insurance policy with likes of HSA who contribute towards any medical treatment?

Wasalaam