It is safe, if we talk about the security and reliability of the transaction. Trading on DEX is much safer than on centralized platforms.