Peppermint oil during pregnancy

Katie
Is it safe to apply peppermint oil on skin during pregnancy. I use it for headaches and put it on temples and behind neck.