Yes. STT is charged on the premium value when you sell an option, regardless of whether the option later expires profitable or worthless.