lube?

Is it safe to use petroleum jelly as lube? For anal and vaginal?