Yes, it is safe to work under jack stands. You can safely do your job under a car that rests on jack stands as long as the stands have enough potential to hold the load. Meaning they should have equal or more load capacity than that vehicle’s weight.
Read more about jack stands and how it works by clicking here.