It's perfectly safe and okay to use your laptop while it's plugged in and charging.
The laptop battery won't be affected by using your laptop while it's on the charger and it's best to plug your laptop in to use it when you're near an electrical outlet.