hi! Is starving yourself considered self harm?

sometimes i do it on purpose and sometimes i just forget to eat.

And i have never thought that would consider as a self harm cause my mental health is not that good