Yes. But please note that the H-Points you earn will be based on the final purchase amount after discount.
For example, if your purchase total was RM100 and you applied a promotional code “RM10 OFF”, you will only earn the discounted amount, i.e. RM90 (90 H-Points).