Yes - but Django doesn’t expose ssl-mode directly, you must pass it through the MySQL driver (mysqlclient or PyMySQL) using OPTIONS.
ssl-mode
mysqlclient
PyMySQL
OPTIONS