Yes, as long as the treatment is for a specified sickness or condition stated in Rule 11DD, the deduction can be claimed for both inpatient and outpatient treatment.