Yes, meditation would definitely help with that, though it’s not a quick fix, but more something that would become more effective over time, with practice.
In the meantime, if the thoughts are connected with tasks you need to do, then taking action to get them done, where possible, will stop the thoughts coming. Of course, that’s not always possible, which is where the meditation will help.
You can always be mindful during the day too, not just during meditation (in fact, in many ways this is just as/more powerful), eg when you notice you are having the thoughts, just try to observe them with curiosity, and neither dive in and run with them nor try to push them away. Then let them go (don’t force this - it will likely happen by itself, but if it doesn’t then no worries. Eventually something else will happen to crowd the thought out for a bit).
Applying mindfulness to daily life will help, over time, as it gives less space for the intrusive thoughts. Eg, when you are in the shower, instead of eg planning your day, pay attention instead to all the experiences you are having; the feeling of the water on your body, the smell of the products, the sound is the water running etc. If you really focus on that it can be surprising how interesting and pleasurable the mundane tasks of daily life can be (though pleasure seeking is not the goal...).
I agree with AnnaNimmity (great name!) that yoga can be very helpful. Qi Gong is also great for being in the flow and mindfully moving the body. Most classes incorporate a mediation segment.