Is it safe to drive car with oil light on?

Which oil light?

There are two on most cars. One of them is a "best practices" recommendation, the other one is notification that you have a serious problem. If your oil pressure is low enough to trigger that light, it means that you're either literally or effectively out of oil, and driving a car in that condition for even a short distance will ruin your engine.