Sophia Ah, yes, composing music is an awesome skill. But that's not one of my aspirations
Hey Sophia, if improv is your goal, it's definitely a good idea to try your hand at composing. One way to look at it: Bill Evans said that improvisation is creating a minute's worth of music in one minute. That's very fast composing! Pianists are used to learning to do things quickly. And how? By practicing slowly and building up speed. Well, the same approach can be used for improvisation. First, you create one minute's worth of music in 30 minutes. You keep practicing, you will get faster and faster.
In reality, this is just one direction from which to attack the problem of improvisation. If the goal is the spontaneous creation of music, first in the heart and brain, and then faithfully transferred to the fingers, the problem needs to be attacked in multiple ways. But my point is that composition practice definitely helps improvisation.