Yes, you can put spaghetti squash in soup and it makes a great healthy "noodle"alternative!
However, I recommend adding the spaghetti squash to the soup right before serving and storing it separate or it will break down too much.