Go to Settings → Apple ID → iCloud and toggle off Notes. This will stop all the notes on your iPhone from syncing with other Apple devices such as iPad and Mac.