It's up to you. Most recommendations state to cook pasta "al dente". However if you don't like your pasta to be slightly undercooked, go ahead and cook it until it's soft but not falling apart.