Midwife brew?

Can I use coconut oil Instead of castor oil in the midwife brew?

My doctor gave me the go I’m 37w but I have read that Castor oil is bad for baby.