Is this allowed by d&d rule?

My personal thought, base on limited experience with d&d (video game only, not table top), should not be able to learn, but able to use scroll.