As long as you want to keep the same thread, yes.
If you want to experiment with this, I have a project
where by default requests don’t keep context, but you can use “chat” or “-c” to keep it. The docs explain it in more details.
If you’re a typescript person, you can even steal my code