Coconut oil as lube

I've heard that coconut oil is good to use as lube? Is it safe to use with a condom though??