Mmmm, yes, but for composite it's not trivial like it'd be for S-Video. To quote some random Redditor:
You need a device called frame buffer. VGA signal are sampled (ADC) and store in a memory. This memory is read by another circuity, at NTSC/PAL frame rate, and RGB converted to NTSC/PAL. For a standard VGA (640x640@60Hz) a line converter (only a FIFO memory) can be used to convert to NTSC. More details here.
https://www.epanorama.net/circuits/vga2tv/vga_to_tv_techniques.html