Leave in conditioner with castor oil

I know castor oil is a no-no to ingest while pregnant, but is it okay to use a leave in conditioner with castor oil in it? It’s a new kind I haven’t tried before and I didn’t notice until after I already put it on my hair. Should I go wash it out? 37 weeks