Yes you can. Tofu doesn’t really need to be cooked for a particular length of time to be safe to eat. You need to cook it long enough to heat it through though and the longer you cook it, the more it may absorb some of the flavors of the soup.