Not X11, any app can see or manipulate any other apps screen buffer. It is one reason Wayland is nice.
If your system has MAC you can restrict its file access, but in general you have library support for this stuff built in.
It is also why in most cases it is a PITA to stream 3d rendered screens. Opengl / directX don't provide easy ways like X11 to look at a completed framebuffer and store / broadcast it.