Is it okay to use laptop while charging Lenovo

Is it alright to use your laptop while charging? from laptops

I using lenovo legion y520...

somoone say it will damage laptop'battery