On a Kindle device the actual annotations are stored in a separate file for each book. More details
here.
Whether or not you can transfer annotations from one book to another by copying that file is unknown. Certainly any changes to a book that impact the internal structure will result in annotations being linked to the wrong content.