It is advisable to consult with a healthcare professional before using tea tree oil during pregnancy to ensure its safe use for both the mother and the baby.