Hi there, this is Marc. Thanks for reaching out the community.
Yes, it’s safe to use your laptop while charging. Modern laptops stop charging once the battery is full and run on AC power, so they won’t overcharge. The laptop may get warmer during heavy use, but that’s normal if the vents are clear and airflow is good. The only long-term effect is that keeping the battery at 100% all the time can shorten its lifespan slightly, but for daily use it’s not a problem.
Best regards,