Is coconut oil okay to use with cloth?

I need something as a "preventative" because my daughter has some issues with her lady parts. Is coconut oil okay instead of petroleum jelly?