Writing in the margins is a thing I believe many a scribe has done for many generations
It's recognized as a study aid. Especially if you're re-reading or studying a lot of material on a subject and need to go back. You can easily see what your past self was thinking or maybe quickly find a part you found interesting.
It's fundamentally useful to write up your own books.