The WAL setting is persistent (stored in the database), so you really only need to set it once when you create the database. However, changing the journal_mode to WAL when it is already WAL is not harmful.
The WAL setting is persistent (stored in the database), so you really only need to set it once when you create the database. However, changing the journal_mode to WAL when it is already WAL is not harmful.