Is it safe to optimize?

We have 4096 databases on a dedicated master slave setup. I want to know if it is safe to run this sql command on the database. I want to make sure there will be no issues.

mysqlcheck -u root -p – -auto-repair –check –optimize –all-databases