Yes, but add them after the soup has cooked under pressure. Use the sauté function to simmer the soup with the added pasta or rice until they are tender, checking frequently to avoid overcooking.