No, it is not safe, you should use for example multiprocessing.Lock() to ensure that only one process accesses the shared memory at a time to avoid race conditions.
multiprocessing.Lock()